iOS Tutorial urlRequest.setValue()
incorrect use in docs
#143
-
Hi, I'm attempting to build a Swift app and are starting with the iOS tutorial on the Deepgram blog. Building and running the example application generates the error: Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've solved the issue I was having. In the tutorial, the line should be |
Beta Was this translation helpful? Give feedback.
-
Thanks Rich, we really appreciate you finding and responding with the solution. We've made a point to update our docs! |
Beta Was this translation helpful? Give feedback.
I've solved the issue I was having.
In the tutorial, the line
urlRequest.setValue(apiKey, forHTTPHeaderField: "Authorization")
should be
urlRequest.setValue("Token \(apiKey)", forHTTPHeaderField: "Authorization")