Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter Oauth Statuses/show in codeigniter returns error
    primarykey
    data
    text
    <p>I am using <a href="https://github.com/MunGell/Codeigniter-TwitterOAuth" rel="noreferrer">this</a> library for implementing twitter Oauth in my project, and codeigniter if that is relevant in this case.</p> <p>I am trying to get a tweet based on the tweet id, but it's returning an error:</p> <pre><code>{"errors":[{"message":"Sorry, that page does not exist","code":34}]} </code></pre> <p>Here is the code I am using:</p> <pre><code>public function gettweetbyid() { $this-&gt;config-&gt;load('twitter'); $consumer = $this-&gt;config-&gt;item('twitter_consumer_token'); $consumer_secret = $this-&gt;config-&gt;item('twitter_consumer_secret'); $access_token = $this-&gt;config-&gt;item('twitter_access_token'); $access_token_secret = $this-&gt;config-&gt;item('twitter_access_secret'); $connection = $this-&gt;twitteroauth-&gt;create($consumer, $consumer_secret, $access_token, $access_token_secret); $content = $connection-&gt;get('account/verify_credentials'); $data = array( 'id' =&gt; $this-&gt;input-&gt;get('id') ); $tweets = $this-&gt;twitteroauth-&gt;get('statuses/show', $data); echo json_encode($tweets); } </code></pre> <p>I know everything is right because I am using the plugin as well to get tweets based on a hashtag, and this is no problem at all.</p> <p>The URl I am getting looks very similar to their docs url:</p> <pre><code>https://api.twitter.com/1.1/statuses/show.json?id=408541017676460000&amp;.... </code></pre> <p>I'm looking at this for a whole day now and my time is running out...</p> <p>Any help would be appreciated!</p> <p>Edit: Also, is there any way on twitter I can check if the ID actually exists? Altho I don't think that is the problem, I'd like to know for future reference</p>
    singulars
    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