Skip to content

GoDaddy v1 API implementation with secured auth token.

License

Notifications You must be signed in to change notification settings

pythoninthegrass/gopappy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopappy

Inspo from here.

Installation

python -m pip install -U gopappy

Usage

Authentication

Adding a DNS record to a domain

# A record
gopappy add-record $DOMAIN -t A -n subdomain -d 127.0.0.1

# CNAME
gopappy add-record $DOMAIN -t CNAME -n www -d $DOMAIN

# TXT
gopappy add-record $DOMAIN -t TXT -n subdomain -d "some text here"

Deleting a DNS record from a domain

gopappy delete-record $DOMAIN -t A -n subdomain

Listing records of a domain

# list all records
gopappy records $DOMAIN

# filter by record type
gopappy records $DOMAIN -t cname

Listing all domains in godaddy account

gopappy domains
# mydomain1.com
# mydomain2.com

Check whether a domain is available to purchase or not

gopappy check $DOMAIN 

TODO

  • Control for no arguments (e.g., call --help)
    λ gopappy
    Failed to retrieve environment variables from keyring
    Enter your GoDaddy API Key:
    Enter your GoDaddy API Secret:
    Enter your GoDaddy Domain: testytesterson.com
    Successfully set environment variables in keyring!
    
    Usage: gopappy [OPTIONS] COMMAND [ARGS]...
    Try 'gopappy --help' for help.
    ╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ Missing command.                                                                                          │
    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    
  • Add subcommand to manage auth
    • CRUD

About

GoDaddy v1 API implementation with secured auth token.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 79.0%
  • Dockerfile 11.4%
  • Shell 9.6%