How do I pass parameters to the API 1.1 GET/search using PHP and CURL


#1

I am trying to pass parameters to the search API using PHP, GET and CURL, without parameters the API work fine. When I try to attach the parameters, I get the message could not authenticate. Does anyone know how to get around that?


#2

The Search API in API v1.1 requires OAuth authentication. You can’t use curl arbitrarily to access the API and should use an OAuth-ready library like tmhOAuth or twitteroauth in PHP to access.