{"action":"closed","issue":{"url":"https://api.github.com/repos/ttezel/twit/issues/393","repository_url":"https://api.github.com/repos/ttezel/twit","labels_url":"https://api.github.com/repos/ttezel/twit/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/ttezel/twit/issues/393/comments","events_url":"https://api.github.com/repos/ttezel/twit/issues/393/events","html_url":"https://github.com/ttezel/twit/issues/393","id":273163780,"node_id":"MDU6SXNzdWUyNzMxNjM3ODA=","number":393,"title":"Liking Post Always Resolves With { errors: [ { message: 'Sorry, that page does not exist', code: 34 } ] } ","user":{"login":"JimTheMan","id":5354163,"node_id":"MDQ6VXNlcjUzNTQxNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5354163?v=4","gravatar_id":"","url":"https://api.github.com/users/JimTheMan","html_url":"https://github.com/JimTheMan","followers_url":"https://api.github.com/users/JimTheMan/followers","following_url":"https://api.github.com/users/JimTheMan/following{/other_user}","gists_url":"https://api.github.com/users/JimTheMan/gists{/gist_id}","starred_url":"https://api.github.com/users/JimTheMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimTheMan/subscriptions","organizations_url":"https://api.github.com/users/JimTheMan/orgs","repos_url":"https://api.github.com/users/JimTheMan/repos","events_url":"https://api.github.com/users/JimTheMan/events{/privacy}","received_events_url":"https://api.github.com/users/JimTheMan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-11T18:00:05Z","updated_at":"2018-05-31T02:40:49Z","closed_at":"2018-05-31T02:40:49Z","author_association":"NONE","body":"Hi, I'm trying to write a script that searches for tweets and then likes the first tweet. \r\n\r\nHere is my code: \r\n\r\n```\r\nconst Twit = require('twit');\r\nconst config = require('./config');\r\n\r\nconst T = new Twit(config);\r\n\r\nT.get('search/tweets', { q: 'clojure since:2011-11-11 lang:en', count: 100 }, function(err, data, response) {\r\n\r\n    console.log('first tweet: ' +  data.statuses[0].id);\r\n\r\n    T.post('favorites/create/:id', { \"id\": data.statuses[0].id }, function (err, data, response) {\r\n        console.log(data);\r\n    })\r\n});\r\n``` \r\n\r\nI tried with id and id_str, but neither are working. :("}}
{"actor":{"display_login":"ttezel"}}