getting a Auth token


valcos
 

Great! Thank you Mark!


 

On Tue, Jul 3, 2018 at 8:18 AM, valcos <valcos@...> wrote:
I'm trying to get an auth token to fetch data from the API. I'm following the instructions here: https://groups.io/api#authentication-1 however when I execute the command:
$ curl "https://api.groups.io/v1/login" -u <my-username>: -d "email=<my-email>&password=<my-pwd>"
You need to specify an API token instead of <my-username> in your example. While the API is in alpha, you can use the token 123456.

Cheers,
Mark 


valcos
 

I'm trying to get an auth token to fetch data from the API. I'm following the instructions here: https://groups.io/api#authentication-1 however when I execute the command:
$ curl "https://api.groups.io/v1/login" -u <my-username>: -d "email=<my-email>&password=<my-pwd>"
I get:
{"object":"error","type":"unauthorized","extra":""}
What I'm doing wrong?

Cheers,
Valerio