Skip to content

Instantly share code, notes, and snippets.

View joestump's full-sized avatar

Joe Stump joestump

View GitHub Profile
@joestump
joestump / client.py
Created September 3, 2012 21:47
A simple JSON only Alchemy API client for Python using the requests library.
import requests
import urllib
class AlchemyAPI(object):
BASE_URL = 'https://access.alchemyapi.com'
def __init__(self, api_key):
self.api_key = api_key
@joestump
joestump / children.json
Created July 26, 2012 01:04
/api/products/{product_id}/items/{item_number}/children.json
[
{
"status": "backlog",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"description": "Require people to estimate the score of an item before they can start working on it.",
"tags": [
@joestump
joestump / {item_number}.json
Last active October 7, 2015 14:28
/api/products/{product_id}/items/{item_number}.json
{
"status": "accepted",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"progress": {
"accepted_at": "2013-06-14T22:52:07+00:00",
"closed_at": "2013-06-14T21:53:43+00:00",
@joestump
joestump / items.json
Last active October 7, 2015 14:28
/api/products/{product_id}/items.json
{
"status": "backlog",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"description": "Require people to estimate the score of an item before they can start working on it.",
"tags": [
"scoring",
@joestump
joestump / items.json
Last active October 7, 2015 14:28
/api/products/{product_id}/items.json
[
{
"status": "backlog",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"progress": {
"accepted_at": "2013-06-14T22:52:07+00:00",
@joestump
joestump / comments.json
Created July 26, 2012 00:19
/api/products/{product_id}/items/{item_number}/comments.json
{
"body": "These mockups look amazing. However, I think we should make the running guy glow when the AJAX queries are running instead of the 'Working...' header we have.",
"type": "comment",
"id": 445,
"created_by": {
"first_name": "Joe",
"last_name": "Stump",
"id": 1,
"email": "joe@joestump.net"
}
@joestump
joestump / comments.json
Created July 26, 2012 00:17
/api/products/{product_id}/items/{item_number}/comments.json
[
{
"body": "Refs #285 and #286.\n\n* Mapped out a URL callback for EmailYak.\n* Set up settings, urls, etc. and a stubbed view for EmailYak.\n\nRan into a problem where you have to register every single email address you wish to receive email for. This would result in us having to make an API call for every single item and every single product created in the system. I've emailed the EmailYak guys and am hoping they'll have a fix by next week. This is blocking until then.",
"type": "commit",
"id": 400,
"created_by": {
"first_name": "Joe",
"last_name": "Stump",
"id": 1,
"email": "joe@joestump.net"
@joestump
joestump / blocking.json
Created July 26, 2012 00:00
/api/products/{product_id}/items/{item_number}/blocking.json
{
"user": {
"first_name": "Joe",
"last_name": "Stump",
"id": 1,
"email": "joe@joestump.net"
},
"item": {
"status": "backlog",
"product": {
@joestump
joestump / blocking.json
Created July 25, 2012 23:58
/api/products/{product_id}/items/{item_number}/blocking.json
[
{
"user": {
"first_name": "Joe",
"last_name": "Stump",
"id": 1,
"email": "joe@joestump.net"
},
"item": {
"status": "backlog",
@joestump
joestump / favorites.json
Created July 25, 2012 23:44
/api/products/{product_id}/items/{item_number}/favorites.json
{
"first_name": "Joe",
"last_name": "Stump",
"id": 1,
"email": "joe@joestump.net"
}