LyftSDK.ResponseType.unauthorized错误#20

时间:2018-07-11 09:29:29

标签: ios swift lyft-api

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

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

0 个答案:

没有答案