From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mortimer Cladwell Newsgroups: gmane.lisp.guile.user Subject: Re: http-request bearer token syntax for Twitter v2 api Date: Wed, 12 Oct 2022 14:33:05 -0400 Message-ID: References: <87edvd713c.fsf@laura> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31341"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Olivier Dion Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Oct 12 20:40:51 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oigex-0007zg-45 for guile-user@m.gmane-mx.org; Wed, 12 Oct 2022 20:40:51 +0200 Original-Received: from localhost ([::1]:37718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oigev-0004h7-Pq for guile-user@m.gmane-mx.org; Wed, 12 Oct 2022 14:40:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oigXn-0006j6-9j for guile-user@gnu.org; Wed, 12 Oct 2022 14:33:48 -0400 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:47087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oigXf-0003kw-20 for guile-user@gnu.org; Wed, 12 Oct 2022 14:33:20 -0400 Original-Received: by mail-pj1-x1032.google.com with SMTP id t12-20020a17090a3b4c00b0020b04251529so2841659pjf.5 for ; Wed, 12 Oct 2022 11:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wT4+6JZmLoZSlb+kk76qyOs0YwEtahJ4yAv1Xye+PVc=; b=FwbfuKrFuo/IMzKTkj+TjCqZodVqOhBrXCqjF/lvzyHRxq0Ed2ljvU1lPYcMpmwqkV mlLSxn8YMLNYCTVXGKrX2nJOB/3FldU5MveWNlysr40HrXASJ71kC07IzOnSGie07xr5 NhZT5hqMfi0IzoRplACqLh+9ONNZs0jSRn0mgTynH1XbB59i6BQpziwEe1uXzNJnUgLA f1CF/BzinR9M5N7NSJT/CLK2B1T7f785E0DkT6Hg3narTq2vwEFEw8b6jE9nqJIFGj6/ SbKjWwcJS5jI1A9k9hinCFPXjTSkp2qyKheti6SEQicPkggpVs/hzMLfgiTLmJ5tcOYB kQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wT4+6JZmLoZSlb+kk76qyOs0YwEtahJ4yAv1Xye+PVc=; b=XNuiC+OaDmfka+kYbQoFfc8awoYz/GKOZG33Ma8/anNYH5wF8Bh+m76gODcjSI0iQS Uz84rk6SobSqn9sbFMv6CBFR6p5C9cf2zbdsBd5xMTWpEMYEWUc3FXanx35TMhNUmjV4 EgqqHOj2ILLb4lpSEtM83H1PPmGWlIqSR6sSC/HHJkxjyD+y77hnUjHUfLmSyiT834Yz kZwXm4qGjHW37xVCbaD0VODF4Srk5EJ/b/NRPAMMU6ZMPiiljMogjIlvHGr1s2aO8M5B 5cUCwtDv8i0pEADUwo3lsd7Tv6koi63HlIuI1+uRiYFGdXcBs3UcRxDLg73C50UIfQev ReiA== X-Gm-Message-State: ACrzQf1xW96UwPTpG/qyMZw5eqN0iGY7X78R/MaDz8l1EVFz0zRSMmOp sEO7exIwk8eOOYgF5lzFVEgLy2bfH9A1vwUZafk= X-Google-Smtp-Source: AMsMyM6thBvhHaJjf0L2u9Vgrc8dQXekitZ2iWFVEouc6c7PoQnY1iSLYAuBA1NHkiWQ3DllLo45w9Vm7Of3DF3gpVs= X-Received: by 2002:a17:902:ce03:b0:178:3ba6:f731 with SMTP id k3-20020a170902ce0300b001783ba6f731mr31452616plg.115.1665599596634; Wed, 12 Oct 2022 11:33:16 -0700 (PDT) In-Reply-To: <87edvd713c.fsf@laura> Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=mbcladwell@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18623 Archived-At: 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 > > 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 >