Skip to content

Instantly share code, notes, and snippets.

View tristankirkpatrick's full-sized avatar

Tristan Kirkpatrick tristankirkpatrick

View GitHub Profile
var Twit = require('twit')
var twitter = new Twit({
consumer_key: 'xxx',
consumer_secret: 'xxx',
access_token: 'xxx',
access_token_secret: 'xxx',
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
strictSSL: true, // optional - requires SSL certificates to be valid.
})
var Twit = require('twit')
var twitter = new Twit({
consumer_key: 'xxx',
consumer_secret: 'xxx',
access_token: 'xxx',
access_token_secret: 'xxx',
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
strictSSL: true, // optional - requires SSL certificates to be valid.
})
[{"_id":"950501185","id":950501185,"id_str":"950501185","name":"Ben Barnes","screen_name":"BBCSTeacher","location":"The North","profile_location":null,"description":"Director of Computer Science for Outwood Grange Academies Trust. Level 1 & 2 Google Certified Educator and Google Certified Innovator #LON19. Views are my own.","url":"https://t.co/uEzmbwSen2","entities":{"url":{"urls":[{"url":"https://t.co/uEzmbwSen2","expanded_url":"http://computing.outwood.com","display_url":"computing.outwood.com","indices":[0,23]}]},"description":{"urls":[]}},"protected":false,"followers_count":321,"friends_count":139,"listed_count":3,"created_at":"Thu Nov 15 21:26:04 +0000 2012","favourites_count":450,"utc_offset":null,"time_zone":null,"geo_enabled":false,"verified":false,"statuses_count":986,"lang":null,"status":{"created_at":"Sun Aug 11 12:01:14 +0000 2019","id":1.16052155259888026E18,"id_str":"1160521552598880257","text":"Isabella all ready for her first England game today #Weartherose #rugby #englandvwales https://t.co/
var Twit = require('twit')
var twitter = new Twit({
consumer_key: '',
consumer_secret: '',
access_token: '',
access_token_secret: '',
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
strictSSL: true, // optional - requires SSL certificates to be valid.
})
var Twit = require('twit')
var twitter = new Twit({
consumer_key: '',
consumer_secret: '',
access_token: '',
access_token_secret: '',
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
strictSSL: true, // optional - requires SSL certificates to be valid.
})
new Vue({
el: "#app",
data: function () {
return {
filter: "",
sort: "",
options: [
{ label: "Recently Added", value: "none" },
{ label: "Most Followers", value: "followers_count" }],
[{"_id":{ "$oid": "5d492d37263686f55d2b8498" },"id":591324048,"id_str":"591324048","name":"Alex Quigley","screen_name":"HuntingEnglish","location":"York, England","profile_location":null,"description":"National Content Manager at the Education Endowment Foundation. Former English teacher. Author: ‘Closing the Vocabulary Gap': https://t.co/VPMgpYNEyl","url":"https://t.co/b6jRZ85k9Q","entities":{"url":{"urls":[{"url":"https://t.co/b6jRZ85k9Q","expanded_url":"http://www.theconfidentteacher.com","display_url":"theconfidentteacher.com","indices":[0,23]}]},"description":{"urls":[{"url":"https://t.co/VPMgpYNEyl","expanded_url":"http://amzn.to/2BwNd2F","display_url":"amzn.to/2BwNd2F","indices":[126,149]}]}},"protected":false,"followers_count":46337,"friends_count":3892,"listed_count":569,"created_at":"Sat May 26 20:51:20 +0000 2012","favourites_count":10414,"utc_offset":null,"time_zone":null,"geo_enabled":false,"verified":false,"statuses_count":41808,"lang":null,"status":{"created_at":"Mon Aug 05 17:07:26 +0000 2019"