Skip to content

Instantly share code, notes, and snippets.

import requests
import json
from urlparse import urlparse
app_id = 'some_app_id'
app_secret = 'some_app_secret'
token = 'some_token'
class Linnworks(object):
def __init__(self, app_id, app_secret, token):
import requests
class GiritonApi:
TOKEN = 'xxx'
URL = 'https://rest.giriton.com/system/api/'
ENDPOINT_EMPLOYEES_LIST = 'hr/usersEmployedOn'
ENDPOINT_EMPLOYEE = 'hr/userEmployedOn'
import requests
class GiritonApi:
TOKEN = 'xxx'
URL = 'https://rest.giriton.com/system/api/'
ENDPOINT_EMPLOYEES_LIST = 'hr/usersEmployedOn'
ENDPOINT_EMPLOYEE = 'hr/userEmployedOn'