Skip to content

Instantly share code, notes, and snippets.

View nkelner's full-sized avatar

Nathaniel Kelner nkelner

View GitHub Profile
{
"openapi": "3.0.0",
"info": {
"title": "LeafLink API",
"description": "# Introduction\nWelcome to the LeafLink API. This API is documented in [OpenAPI format](https://swagger.io/docs/specification/about/) and generated with [Redoc](https://github.com/Redocly/redoc).\n\n\n# HTTP Request Notes\nAll endpoints covered in this document are preceded with https://leaflink.com/api/v2 unless otherwise noted.\n\nRequest paths must end in a slash character ('/'). Those that do not will return a 400 (Bad Request) response.\n\n# Dynamic Responses\nSome of our API endpoints support dynamic responses. These\nare responses that vary in content and/or object level payload size\naccording to request path or query parameters.\n\nAvailable parameters are listed beneath endpoint definitions.\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
"termsOfService": "https://leaflink.com/terms-and-conditions/",
"contact": {
"email": "integrations@leaflink.com"
},
"version": ""
{
"openapi": "3.0.0",
"info": {
"title": "LeafLink API",
"description": "# Introduction\nWelcome to the LeafLink API. This API is documented in [OpenAPI format](https://swagger.io/docs/specification/about/) and generated with [Redoc](https://github.com/Redocly/redoc).\n\n\n# HTTP Request Notes\nAll endpoints covered in this document are preceded with https://leaflink.com/api/v2 unless otherwise noted.\n\nRequest paths must end in a slash character ('/'). Those that do not will return a 400 (Bad Request) response.\n\n# Dynamic Responses\nSome of our API endpoints support dynamic responses. These\nare responses that vary in content and/or object level payload size\naccording to request path or query parameters.\n\nAvailable parameters are listed beneath endpoint definitions.\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
"termsOfService": "https://leaflink.com/terms-and-conditions/",
"contact": {
"email": "integrations@leaflink.com"
},
"version": ""
@nkelner
nkelner / Rev-HS.md
Last active July 22, 2019 20:34
Hubspot <> Datawarehouse API Instructions

Hubspot <> Datawarehouse API Instructions

Authentication

Please use the api key that I've shared out of band. From here on out the api key will be referenced at {key}

Request

To update a contact's last purchase date make a POST resquest to https://api.hubapi.com/contacts/v1/contact/email/{contact_email}/profile?hapikey={key} where {contact_email} is the email of the contact (customer) whose last purchase date we'd like to update

The Content-Type header should be set to 'application/json'

@nkelner
nkelner / keybase
Created November 4, 2014 03:55
keybase.md
### Keybase proof
I hereby claim:
* I am nkelner on github.
* I am natk (https://keybase.io/natk) on keybase.
* I have a public key whose fingerprint is 8EE5 EDA8 B114 3975 C0B2 B038 290B 5B3D D772 346F
To claim this, I am signing this object:
@nkelner
nkelner / Gevent demo
Created October 9, 2013 04:30
Watch gevent pwn blocking api calls.
import gevent.monkey
gevent.monkey.patch_socket()
import gevent
import requests
def fetch(pid):
response = requests.get('http://timeapi.org/utc/now.json')
result = response.json()
datetime = result['dateString']
@nkelner
nkelner / README.md
Last active November 12, 2020 00:10
A simple vector map of Vermont's Counties.