Hi andreassavviddes,
I made the request in the exact moment I’ve generated the code. I’ve tried in this way because with the php library that I usually use it didn’t work (It works with other methods like, get/target_criteria/devices)
I made again the request and this is the output.
Request:
curl --get 'https://ads-api.twitter.com/0/targeting_criteria/app_store_categories' --header 'Authorization: OAuth oauth_consumer_key="XXX", oauth_nonce="XXX", oauth_signature="XXX", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1429189515", oauth_token="XXX", oauth_version="1.0"' --verbose
Response:
* Hostname was NOT found in DNS cache
* Trying 185.45.5.34...
* Connected to ads-api.twitter.com (185.45.5.34) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Twitter, Inc.; OU=LON3 Point of Presence; CN=*.twitter.com
* start date: 2015-01-21 00:00:00 GMT
* expire date: 2018-01-24 12:00:00 GMT
* subjectAltName: ads-api.twitter.com matched
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
* SSL certificate verify ok.
> GET /0/targeting_criteria/app_store_categories HTTP/1.1
> User-Agent: curl/7.37.1
> Host: ads-api.twitter.com
> Accept: */*
> Authorization: OAuth oauth_consumer_key="XXX", oauth_nonce="XXX", oauth_signature="XXX", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1429189515", oauth_token="XXX", oauth_version="1.0"
>
< HTTP/1.1 404 Not Found
< content-disposition: attachment; filename=json.json
< content-length: 117
< content-type: application/json;charset=utf-8
< date: Thu, 16 Apr 2015 13:05:22 GMT
* Server tsa_f is not blacklisted
< server: tsa_f
< set-cookie: guest_id=v1%3A142918952235118581; Domain=.twitter.com; Path=/; Expires=Sat, 15-Apr-2017 13:05:22 UTC
< strict-transport-security: max-age=631138519
< x-access-level: read-write-directmessages
< x-connection-hash: c02e39be0a2abfa211d0e8722f019010
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< x-rate-limit-limit: 400
< x-rate-limit-remaining: 399
< x-rate-limit-reset: 1429190422
< x-response-time: 102
< x-runtime: 0.001023
< x-transaction: ce929f318434b596
< x-xss-protection: 1; mode=block
<
* Connection #0 to host ads-api.twitter.com left intact
{"errors":[{"code":"ROUTE_NOT_FOUND","message":"The requested resource could not be found"}],"request":{"params":{}}}
I want to remark that this method works for me with other url
Thanks!!
Hector