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 logging | |
import os | |
from io import BytesIO | |
import boto3 | |
import click | |
import requests | |
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
################### Generate a secrey key ################### | |
# First generate your own secret key. | |
## Add code here to generate your own secret key | |
# Python: https://blog.miguelgrinberg.com/post/the-new-way-to-generate-secure-tokens-in-python | |
# Nodejs: https://stackoverflow.com/questions/8855687/secure-random-token-in-node-js (Make sure to change it to 25-35 characters) | |
#################### Get API Key ################### | |
# Next, send a post request with your secret key, which will return a api key |
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
require 'uri' | |
require 'net/http' | |
require 'openssl' | |
require 'json' | |
require 'byebug' | |
class WyreApi | |
ACCOUNT_ID = '**-*************' | |
API_KEY = '****-****-****-****' | |
SEC_KEY = '****-****-****-****' |