Re: [Pharo-users] Adding an Authorization Bearer header via Zinc
Aug. 27, 2018
10:37 p.m.
Norbert said <<< You have a colon in the name of the header. I?m not sure zinc removes it. It could be a problem.
Ah, spot on. Apparently, we need the colon for Curl, but not for Pharo. Also, response setAuthorization turned out to be the best approach. For anyone searching this list, in the future, for Asana connectivity, my PoC is: tmp1 := ZnClient new. tmp1 request setAuthorization: 'Bearer <put your personal access token here>'; url: 'https://app.asana.com/api/1.0/users/me'. tmpJSON := NeoJSONReader fromString: tmp1 get.
2895
Age (days ago)
2895
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andy Burnett