Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter API 1.1 gives error code 32
    primarykey
    data
    text
    <p>So. I'm trying to get all statuses from a list feed. To be more specific, this one <a href="https://dev.twitter.com/docs/api/1.1/get/lists/statuses" rel="nofollow">https://dev.twitter.com/docs/api/1.1/get/lists/statuses</a></p> <p>It's using the OAuth 1.0a, as far as I know. My problem is, that I get an errorcode 32.</p> <p>I'm using following code:</p> <pre><code>&lt;?php function buildBaseString($baseURI, $method, $params) { $r = array(); ksort($params); foreach($params as $key=&gt;$value){ $r[] = "$key=" . rawurlencode($value); } return $method."&amp;" . rawurlencode($baseURI) . '&amp;' . rawurlencode(implode('&amp;', $r)); } function buildAuthorizationHeader($oauth) { $r = 'Authorization: OAuth '; $values = array(); foreach($oauth as $key=&gt;$value) $values[] = "$key=\"" . rawurlencode($value) . "\""; $r .= implode(', ', $values); return $r; } $url = "https://api.twitter.com/1.1/lists/statuses.json?slug=danskere-i-udlandet&amp;owner_screen_name=d_fodbold&amp;count=20"; $oauth_access_token = "29194047-Dzwsoo1KiQg69dbabt3nS2ezjjNzlbZdlKpLWsOOG"; $oauth_access_token_secret = "secret"; $consumer_key = "iCV8UbKjmq9LAw1XIvTQ"; $consumer_secret = "secret"; $oauth = array( 'oauth_consumer_key' =&gt; $consumer_key, 'oauth_nonce' =&gt; md5(microtime()), 'oauth_signature_method' =&gt; 'HMAC-SHA1', 'oauth_token' =&gt; $oauth_access_token, 'oauth_timestamp' =&gt; time(), 'oauth_version' =&gt; '1.0'); $base_info = buildBaseString($url, 'GET', $oauth); $composite_key = rawurlencode($consumer_secret) . '&amp;' . rawurlencode($oauth_access_token_secret); $oauth_signature = base64_encode(hash_hmac('sha1', $base_info, $composite_key, true)); $oauth['oauth_signature'] = $oauth_signature; // Make Requests $header = array(buildAuthorizationHeader($oauth)); $options = array( CURLOPT_HTTPHEADER =&gt; $header, //CURLOPT_POSTFIELDS =&gt; $postfields, CURLOPT_HEADER =&gt; false, CURLOPT_URL =&gt; $url, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_SSL_VERIFYPEER =&gt; false); $feed = curl_init(); curl_setopt_array($feed, $options); $json = curl_exec($feed); curl_close($feed); $twitter_data = json_decode($json); var_dump($twitter_data); exit();?&gt; </code></pre> <p>I can't figure what the problem is there.</p> <p>I hope some of you can.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload