I’m trying to use the method users/lookup with a POST request and the Twitter-API-PHP library. Here is my code:
$url = ‘https://api.twitter.com/1.1/users/lookup.json’;
$postfields = array(
‘user_id’ => ‘23687576,358392502’
$requestMethod = ‘POST’;
$result = $twitter->performRequest();
$result2 = json_decode($result);
I get this result: public ‘message’ => string ‘Sorry, that page does not exist’ (length=31). However, If I use the GET method with the same IDs I get the expected result.
What am I doing wrong?
Thanks in advance.