Skip to content

Instantly share code, notes, and snippets.

@hmarquardt
hmarquardt / putEbayShipments.py
Created August 6, 2014 14:49
Ebay -- Complete Order/Add Shipping Info script using the Python EbaySDK (https://github.com/timotheus/ebaysdk-python). This uses v1.0 of the SDK, I've not yet migrated to v2.0 -- Added here because finding example code was hard when I needed to solve this problem. Basically get tracking number and Ebay order number from local Oracle store and u…
# -*- coding: utf-8 -*-
'''
Hank Marquardt
May 26, 2014
'''
import os
import sys
@hmarquardt
hmarquardt / getEbayOrders.py
Last active September 16, 2021 22:40
Fetch orders script using the Python EbaySDK (https://github.com/timotheus/ebaysdk-python). This uses v1.0 of the SDK, I've not yet migrated to v2.0 -- Added here because finding example code was hard when I needed to solve this problem. Basically fetch and insert into our local Oracle database. Not a completely working example. ebay.yaml is req…
# -*- coding: utf-8 -*-
'''
Hank Marquardt
May 26, 2014
Magic -- not really documented properly by *ebay*, the IncludeItemSpecifics is needed to get UPC back in feed
api.execute('GetItem',{'ItemID': '321394881000','DetailLevel': 'ReturnAll','IncludeItemSpecifics': 'True'})
'''
@hmarquardt
hmarquardt / hashroute.js
Created July 28, 2014 14:46
Simple OnHashChange router and sample app implementation. Uses RegEx captures for generic routes, but allows for named routes and overrides as well.
Router = {};
/*
A route should look like this:
{
route: /<regExp>/,
controller: <string name of controller implemented by appObj>,
template: <string name of DOM ID containing template to be rendered, populated by controller>,
slugs: [array of named parameters populated by regex group in route, may override/implement controller