From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: srht Date: Fri, 20 May 2022 08:05:40 +0200 Message-ID: <87h75k1zu3.fsf@gnu.org> References: <87ilq1tep7.fsf@posteo.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7804"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.21; emacs 29.0.50 Cc: Stefan Monnier , emacs-devel@gnu.org To: Aleksandr Vityazev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 20 08:34:03 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nrwD4-0001o6-Oq for ged-emacs-devel@m.gmane-mx.org; Fri, 20 May 2022 08:34:02 +0200 Original-Received: from localhost ([::1]:53962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrwD3-0001Rr-CV for ged-emacs-devel@m.gmane-mx.org; Fri, 20 May 2022 02:34:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrw8w-0000EQ-T9 for emacs-devel@gnu.org; Fri, 20 May 2022 02:29:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrw8v-0004wM-Ns; Fri, 20 May 2022 02:29:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=Wi7f2tTSGTwVtBICehYZQn0JnPl7PvwUAeKZ455hlLA=; b=Tvh00PbULvrnII zsVf6I6HDGa7xysGtPPp5nt1qsLflMFq6YgBdQ5hWOQpHybI4BMlb5Uvv59ganr9iQYBno4Fswil/ OUcktFyv6U+HmEteS3dPtnqTZZRUqMa6BcHioL5eFgQwkPQfbxBCqquhLYr1vUCmaOvmdRSy0AsI/ e25LQ4hQTofQeBSPSO/8456YOtSP7ia13rCm2r2zpW4L82ySeRp3MJmgMMwBMvGNaIMX/WXmoITZR mrDvWZVw29iVWHjDDvp2Wy0/UGGjfTE7PrzUmiHGDMModr2t1m7Tmq+RnY7cY5rxCk4b/8X8MnS57 Z+ZUwdu2CmQKf6og/n9w==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:44391) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrw8v-0003h0-GS; Fri, 20 May 2022 02:29:45 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 2A53427C0054; Fri, 20 May 2022 02:29:45 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 20 May 2022 02:29:45 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedvgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe eugeetueeguedvfefhkeelgfeuieekieevleffkeekkeduudehhfetfeektdfhhfenucff ohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhn rghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrgh esfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 May 2022 02:29:43 -0400 (EDT) In-reply-to: <87ilq1tep7.fsf@posteo.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289996 Archived-At: Aleksandr Vityazev writes: Hi Aleksandr, >> Oh, I finally made it! It seems you cannot use an OAuth 2.0 token >> but must use a legacy one. I'm not sure whose fault that is. I use >> a sr.ht OAuth 2.0 token in hut (the command line client for sr.ht) >> without issues. I think that uses the same REST/GraphQL APIs. > > Sourcehut REST API does not support OAuth2 [1], also worth clarifying. > I don't use hut, but after looking a bit, I can tell that only GraphQl > with API2.0 is used there. There is a GraphQl library for Emacs, but > unfortunately neither elpa nor non-gnu elpa has it. Isn't it a bit unfortunate that this new package starts by using the REST APIs which are described as legacy already and superseeded by the GraphQL APIs (which are, confessedly, not yet complete for all services)? I think the REST APIs will be functional in the mid-term future, but... And is GraphQL really so different to REST? I've never used the former but at a cursory glance I have the impression that they are quite similar just that the former is "GraphQL query in, JSON out" whereas the latter is "JSON in, JSON out". Is that wrong? That's mostly to Stefan: WRT, the graphql library [1]: Wouldn't it make sense to contact the author to include it in GNU ELPA as soon as possible given that GraphQL seems to be trending nowadays? Right now, there's basically just the single author plus some commits from Jonas (tarsius, the Magit author) who has already signed the CA (plus some 1-line status badge fix by someone else). Bye, Tassilo [1] https://github.com/vermiculus/graphql.el/