Getting behaviors using the sort_by parameter is not working for me, not even after the update to the v1 of the Ads API:
Request:
GET /1/targeting_criteria/behaviors?sort_by=name-asc HTTP/1.1
Host: ads-api.twitter.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: Zend\Http\Client
Authorization: [edited out]
Response:
HTTP/1.1 500 Internal Server Error
connection: close
content-disposition: attachment; filename=json.json
content-encoding: gzip
content-length: 109
content-type: application/json;charset=utf-8
date: Thu, 19 May 2016 13:26:47 GMT
server: tsa_b
set-cookie: guest_id=v1%3A146366440778904727; Domain=.twitter.com; Path=/; Expires=Sat, 19-May-2018 13:26:47 UTC
strict-transport-security: max-age=631138519
x-access-level: read-write
x-api-version: 1.0
x-connection-hash: 6c1bb7de26aa5fc795cb4339d670abb7
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-response-time: 21
x-runtime: 0.010107
x-transaction: 4e0ec253c30eef04
x-xss-protection: 1; mode=block
{"errors":[{"code":"INTERNAL_ERROR","message":"Internal Error"}],"request":{"params":{}}}
This has never worked for me. @andrs: could you please help me with this?
Do I need any kind of whitelisting for this to work?
Thank you.