guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Mortimer Cladwell
Subject: Re: http-request bearer token syntax for Twitter v2 api
Date: Wed, 12 Oct 2022 14:33:05 -0400

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 <olivier.dion@polymtl.ca>
wrote:

> On Wed, 12 Oct 2022, Mortimer Cladwell <mbcladwell@gmail.com> 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.
> --8<---------------cut here---------------start------------->8---
> (http-post
>   uri
>   #:body body
>   #:streaming? #t
>   #:headers (append
>              headers
>              `((Authorization .  ,(string-append "Bearer " oauth))
>                (Content-Type . "application/json"))))
> --8<---------------cut here---------------end--------------->8---
>
> --
> Olivier Dion
> oldiob.dev
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]