1

我正在使用 lyft sdk,并且我已经在 appdeligate 中配置了他们的开发帐户密钥...但是当我调用此方法时,我总是得到以下响应是我的代码

let location = CLLocationCoordinate2D(latitude: 37.7833, longitude: -122.4167)

       LyftAPI.rideTypes(at: location) { result in
           result.value?.forEach { rideType in
               print(rideType.displayName)
           }
       }

当我每次遇到此错误时都尝试调用此方法时

▿ Result<Array<RideType>, LyftAPIError>
  ▿ failure : LyftAPIError
    - message : nil
    - reason : "unknown"
    ▿ status : Optional<ResponseType>
      - some : LyftSDK.ResponseType.unauthorized
4

0 回答 0