This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"billingAddress": [ | |
{ | |
"id": "field_4", | |
"name": "firstName", | |
"custom": false, | |
"label": "First Name", | |
"required": true, | |
"default": "", | |
"maxLength": "None", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import hmac | |
import base64 | |
def make_digest(message, key): | |
key = bytes(key, 'UTF-8') | |
message = bytes(message, 'UTF-8') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'fbaldo' | |
import psycopg2 | |
import pprint | |
configuration = { 'dbname': 'database_name', | |
'user':'user_name', | |
'pwd':'user_password', | |
'host':'redshift_endpoint', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymongo import Connection | |
class MongoCon(object): | |
__db = None | |
@classmethod | |
def get_connection(cls): | |
if cls.__db is None: | |
cls.__db = Connection() | |
return cls.__db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"page": 100000, | |
"page_size": 10, | |
"total_count": 216, | |
"parameters": { | |
"order_by": "-created_at" | |
}, | |
"options": { | |
"order_by": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"additional_services": [ | |
"origin_condition_check", | |
"debris_disposal", | |
"destination_unpacking" | |
], | |
"created_at": "2020-12-07T20:49:25.463424+00:00", | |
"currency": "USD", | |
"customer_reference": null, | |
"destination_locations": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"additional_services": [ | |
"origin_condition_check", | |
"debris_disposal", | |
"destination_unpacking" | |
], | |
"created_at": "2020-12-03T15:23:20.438406+00:00", | |
"currency": "USD", | |
"customer_reference": null, | |
"destination_locations": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"additional_services": [ | |
"origin_condition_check", | |
"debris_disposal", | |
"destination_unpacking" | |
], | |
"created_at": "2020-12-02T18:50:05.228752+00:00", | |
"currency": "USD", | |
"customer_reference": null, | |
"destination_locations": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"additional_services": [ | |
"origin_condition_check", | |
"destination_unpacking", | |
"debris_disposal" | |
], | |
"destination_locations": [ | |
{ | |
"address_line_1": "", | |
"city": "Marfa", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"additional_services": [ | |
"origin_condition_check", | |
"destination_unpacking", | |
"debris_disposal" | |
], | |
"destination_locations": [ | |
{ | |
"address_line_1": "11 West 53rd Street", | |
"city": "New York", |
NewerOlder