Skip to content

Instantly share code, notes, and snippets.

View kinlane's full-sized avatar

Kin Lane kinlane

View GitHub Profile
@kinlane
kinlane / test-tewitter.json
Created February 4, 2023 01:46
test-twitter.json
This file has been truncated, but you can view the full file.
[
{
@kinlane
kinlane / long-running-curl-sse.php
Created February 15, 2018 17:38
Long Running PHP CURL Requests To Handle Server Sent Events (SSE)
<?php
// prepare headers for API call
$request_headers = array();
// prepare the url of the api I am calling
$api_url = "http://api.example.com?parameters=whatever";
// append streamdata sandbox proxy
$url = 'https://streamdata.motwin.net/' . $api_url;
@kinlane
kinlane / cryptocompare-openapi.json
Created August 20, 2018 04:11
cryptocompare-openapi
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "Cryptocompare",
"description": "TODO: Add Description"
},
"host": "min-api.cryptocompare.com",
"basePath": "/",
"schemes": [
@kinlane
kinlane / postman-network.json
Created January 29, 2021 23:31
postman-network.json
[
{
"title": "PayPal Here",
"link": "https://explore.postman.com/team/paypalhere",
"image": "https://static.getpostman.com/assets/apinetwork/paypalhere-logo.png"
},
{
"title": "Imgur",
"link": "https://explore.postman.com/team/imgur",
"image": "https://static.getpostman.com/assets/apinetwork/imgur-logo.png"
@kinlane
kinlane / apis.json
Created September 23, 2023 18:09
Sample APIs.json
{
"name": "Name",
"description": "Description",
"image": "https://kinlane-productions.s3.amazonaws.com/apis-json/apis-json-logo.jpg",
"tags": [
"API"
],
"created": "2014-04-07",
"modified": "2020-09-03",
"url": "http://example.com/apis.json",
@kinlane
kinlane / parse-twitter-bookmarks-api-as-postman-collection-test.js
Created December 31, 2019 01:42
parse-twitter-bookmarks-api-as-postman-collection-test.js
var jsonData = pm.response.json();
var tweets = '';
var all_links = [];
// list out all our links.
tweets = "<h2>Bookmarks</h2>";
tweets = tweets + '<ul>';
var tweet_results = jsonData.globalObjects.tweets;
@kinlane
kinlane / twitter-engineer.json
Created February 5, 2023 02:14
twitter-engineer.json
This file has been truncated, but you can view the full file.
[
{
"title": "Introducing Twitter Image Pipeline iOS framework for open source",
@kinlane
kinlane / twitter-blog-2006-through-january-2022.json
Created February 4, 2023 03:19
twitter-blog-2006-through-january-2022.json
This file has been truncated, but you can view the full file.
[
{
"title": "Have Your Quake And Twitter It Too",
"body": "<p>Last night I felt an earthquake but my fiance didn’t believe me. Within seconds my phone started twittering with reports from friends.</p> \n<blockquote> \n <p>“did anyone just feel that earthquake?”<br> “Just felt that earthquake. No one else here did.”<br> “damn, i always miss the quakes”</p> \n</blockquote> \n<p>Aha! See? It was an earthquake and Twitter had my back. <a href=\"http://earthquake.usgs.gov/eqcenter/recenteqsus/Quakes/nc40187964.php#details\">The quake was a light 4.4</a> centered somewhere in Sonoma county.</p>",
"date": "2006-08-03T07:00:00.000Z",
"url": "https://blog.twitter.com/en_us/a/2006/have-your-quake-and-twitter-it-too",
"domain": "blog.twitter.com"
},
{
Twitter Blog Links to 2015
<p><a href="https://blog.twitter.com/en_us/topics/product/2022/twitter-blue-update" target="_blank">Twitter Blue is back. And gold checkmarks are here!</a></p>
<p>By&nbsp;</p>
<p><a href="https://blog.twitter.com/content/blog-twitter/official/en_us/authors.ptraughber.html" target="_blank">@ptraughber</a></p>
<p>&nbsp;on&nbsp;Monday, 12 December 2022</p>
@kinlane
kinlane / twitter-openapi-v2.json
Created January 19, 2023 00:06
Twitter OpenAPI v2
{
"openapi" : "3.0.0",
"info" : {
"description" : "Twitter API v2 available endpoints",
"version" : "2.60",
"title" : "Twitter API v2",
"termsOfService" : "https://developer.twitter.com/en/developer-terms/agreement-and-policy.html",
"contact" : {
"name" : "Twitter Developers",
"url" : "https://developer.twitter.com/"