Re: http-request bearer token syntax for Twitter v2 api

2022-10-13 Thread Mortimer Cladwell
Thanks Ricardo. I used your over-writes and modified my code below: (let* ( (uri "https://api.twitter.com/2/tweets;) (data "{\"text\":\"Hello world!\"}") (access-token "abcdemyaccesstoken") (my-headers `((Content-type . "application/json")(authorization . (bearer . ,access-token)) )) )

Re: http-request bearer token syntax for Twitter v2 api

2022-10-13 Thread Ricardo Wurmus
Hi Mortimer, > Has anyone successfully submitted a bearer token to Twitter v2 api using > http-request? What syntax did you use? The validator for the Authorization header does not permit the “bearer” method with a single string. It expects that authentication methods other than Basic always

Re: http-request bearer token syntax for Twitter v2 api

2022-10-13 Thread Maxime Devos
On 12-10-2022 12:30, Mortimer Cladwell wrote: Hi, Has anyone successfully submitted a bearer token to Twitter v2 api using http-request? What syntax did you use? Without success I have tried many permutations/splellings/capitalizations of: Note that Guile sometimes sends uncapitalised

Re: http-request bearer token syntax for Twitter v2 api

2022-10-13 Thread James Crake-Merani
On 22/10/12 06:30am, Mortimer Cladwell wrote: > Hi, > Has anyone successfully submitted a bearer token to Twitter v2 api using > http-request? What syntax did you use? Without success I have tried many > permutations/splellings/capitalizations of: > > (let* ( > (uri

Re: http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Mortimer Cladwell
Thanks Olivier. Those spellings did not work with https://api.twitter.com/2/tweets and/or Guile http-request. On Wed, Oct 12, 2022 at 7:06 AM Olivier Dion wrote: > On Wed, 12 Oct 2022, Mortimer Cladwell wrote: > > Hi, > > Has anyone successfully submitted a bearer token to Twitter v2 api using

Re: http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Olivier Dion via General Guile related discussions
On Wed, 12 Oct 2022, Mortimer Cladwell wrote: > Hi, > Has anyone successfully submitted a bearer token to Twitter v2 api using > http-request? What syntax did you use? Without success I have tried many > permutations/splellings/capitalizations of: No but I managed with sourcehut.

http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Mortimer Cladwell
Hi, Has anyone successfully submitted a bearer token to Twitter v2 api using http-request? What syntax did you use? Without success I have tried many permutations/splellings/capitalizations of: (let* ( (uri "https://api.twitter.com/2/tweets;) (data "{\"text\":\"Hello world!\"}") (my-token