Re: Where's the token from login endpoint? #api
On Tue, Sep 7, 2021 at 04:37 AM, Derek Milliner wrote:
Thank you so much. That explains my confusion -- if the documentation is mixed up, that provides a shaky foundation to build on.
So I followed your example adding the "token=yes" POST parameters and was able to get a token back. The next thing I would like to do is to get a group's topics using token-based auth. The example in the documentation is:
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>"
*pulls out hair*
dave@Moonquake:~ $ curl "https://groups.io/api/v1/gettopics?group_name=<group_name>" -a 123456: -d token="<redacted>"
I appreciate all your assistance with me figuring out how to use the API.