The Segment resource is deprecated and has been replaced by the tags
property of the Binding resource.
A Segment is a group of Users.
Because the Segment resource is deprecated, use the tags
property of the Binding resource to identify groups of users that you would like to notify with a single request.
The Segment resource is deprecated.
1curl -X GET "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=20" \2-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
1{2"segments": [3{4"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",5"date_created": "2017-02-14T14:36:41Z",6"date_updated": "2017-02-14T14:36:41Z",7"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",8"sid": "GSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",9"unique_name": "segment"10}11],12"meta": {13"first_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",14"key": "segments",15"next_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=1",16"page": 0,17"page_size": 50,18"previous_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",19"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0"20}21}