Re: Where's the token from login endpoint? #api


 

On Tue, Sep 7, 2021 at 8:10 AM <groups@...> wrote:

For example, this below results in an "unauthorized" error:

dave@Moonquake:~ $ curl "https://groups.io/api/v1/gettopics?group_name=<group_name>" -d token="<redacted>"
{"object":"error","type":"unauthorized_error","extra":""}

 

To use a token with curl, include the token using the '-u' parameter to curl, so something like:

Also note the colon at the end.

Cheers,
Mark

Join api@beta.groups.io to automatically receive all group messages.