Unable to get access token.
Closed this issue · 2 comments
prashantdabhi9033 commented
Hello,
when i call
linkedinHelper.authorizeSuccess({ (lsToken) in
linkedinHelper.requestURL("https://api.linkedin.com/v1/people/~:(id,email-address,public-profile-url)?format=json", requestType: LinkedinSwiftRequestGet, success: { (response) -> Void in
self.linkedInId = (response.jsonObject)["publicProfileUrl"] as! String
self.saveLinkedIdData()
DispatchQueue.main.async {
hideLoader()
}
print(response)
}) { [unowned self] (error) -> Void in
print(error.localizedDescription)
DispatchQueue.main.async {
hideLoader()
}
// self.writeConsoleLine("Encounter error: \(error.localizedDescription)")
}
}, error: { (error) in
**print(error.localizedDescription)**
DispatchQueue.main.async {
hideLoader()
}
print("Encounter error: \(error.localizedDescription)")
}) {
DispatchQueue.main.async {
hideLoader()
}
print("User Cancelled!")
}
it always return error
018-12-04 16:21:39.021753+0530 PIOL[6399:1618327] NSURLConnection finished with error - code -1003
A server with the specified hostname could not be found.
Encounter error: A server with the specified hostname could not be found.
please help me.
tonyli508 commented
can you post here your LinkedinSwiftConfiguration?
prashantdabhi9033 commented
Thank you developer,
But i resolved that issue and now i can run app successfully.
…On Thu, 24 Jan, 2019, 9:55 PM Li Jiantang ***@***.*** wrote:
can you post here your LinkedinSwiftConfiguration?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APrDLVW2ap4Q4x-T54IPgRMIB7L19hxeks5vGd6WgaJpZM4ZAZyq>
.