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
| curl --location --request POST 'https://api.ote-godaddy.com/v1/domains/purchase' \ | |
| --header 'accept: application/json' \ | |
| --header 'Content-Type: application/json' \ | |
| --header 'Authorization: sso-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ | |
| --data-raw '{ | |
| "consent": { | |
| "agreedAt": "2022-06-14T11:05:04Z", | |
| "agreedBy": "string", | |
| "agreementKeys": [ | |
| "DNRA" |
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
| #! /usr/bin/env python | |
| # Author: Neeraj | |
| # Email: neerajjose@gmail.com | |
| import configparser | |
| from consolemenu import SelectionMenu | |
| def load_config(file): | |
| config = configparser.ConfigParser() | |
| config.read(file) |