Skip to content

Instantly share code, notes, and snippets.

View neerajjose's full-sized avatar

neeraj neerajjose

  • Lemongrass
  • India
View GitHub Profile
@neerajjose
neerajjose / godaddy-purchase-domain-api.sh
Last active June 14, 2022 12:13
Sample Curl request to purchase a domain from godaddy using GoDaddy API
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"
#! /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)