Get List of Segments

Posted in General by Marco Argenti Thu Jun 15 2017 20:35:04 GMT+0000 (Coordinated Universal Time)·2·Viewed 1,113 times

Here in your documentation: http://api.pushcrew.com/docs/get-list-of-segments you tell to use a GET method but which variable do I have to pass? I created a segment category but I forgot to uncomment the result so I don't have an ID of my segment
June 16, 2017

This API will only provide you a list of all the segments that are present in your account.
You need to pass the authorization key with the query, a json response will be obtained.

In case of your account,
Request: curl -H "Authorization: key=<Your Authorization token >" https://pushcrew.com/api/v1/segments
JSON Response:
{"status":"success","segment_list":[{"id":"146679","name":"eventi"},{"id":"71520","name":"global"}]}

Authorization token can be obtained from API access option on your Pushcrew Dashboard.

June 16, 2017

Thank you very much, I think you could modify the documentation page because these informations are not so clear. Thank you again!

  
Markdown is allowed