Skip to content

Instantly share code, notes, and snippets.

@aviChoice
aviChoice / twitter_api_1.1_backup.js
Created July 17, 2018 15:50 — forked from baptx/twitter_api_1.1_backup.js
Twitter API 1.1 favorites/following/followers backup
/* Twitter API 1.1 favorites/following/followers backup (a textarea will appear so you can copy/paste to save data).
** Get your access keys to use Twitter API 1.1: https://dev.twitter.com/docs/auth/tokens-devtwittercom
** Format JSON in Firefox: https://addons.mozilla.org/EN-us/firefox/addon/jsonview/
** You can change Twitter API URL and Twitter screen_name, then execute script from a trusted web page without CSP protection like about:home in Firefox Scratchpad or any other browser console.
*/
var url = "https://api.twitter.com/1.1/favorites/list.json";
//var url = "https://api.twitter.com/1.1/friends/list.json";
//var url = "https://api.twitter.com/1.1/followers/list.json";