This file contains hidden or 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
| var url = require('url'); | |
| const id = 'YOUR_VERACODE_API_KEY_ID'; | |
| const key = 'YOUR_VERACODE_API_KEY_SECRET'; | |
| const authorizationScheme = 'VERACODE-HMAC-SHA-256'; | |
| const requestVersion = "vcode_request_version_1"; | |
| const nonceSize = 16; | |
| function computeHashHex(message, key_hex) { |
This file contains hidden or 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 os | |
| def create_folder(directory): | |
| try: | |
| if not os.path.exists(directory): | |
| os.makedirs(directory) | |
| except OSError: | |
| print('Error: Creating directory. ' + directory) | |
| #edit this to reflect your local Pythonista directory. You can try the following in a python console |
This file contains hidden or 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
| { | |
| "MRData": { | |
| "xmlns": "http:\/\/ergast.com\/mrd\/1.4", | |
| "series": "f1", | |
| "url": "http://ergast.com/api/f1/2018/circuits.json", | |
| "limit": "30", | |
| "offset": "0", | |
| "total": "21", | |
| "CircuitTable": { | |
| "season": "2018", |