GithubHelp home page GithubHelp logo

godaddy's Introduction

API 接口说明

修改src/common.py中的api_key及api_secret信息

通过到GodAddy去获取相关的key和secret
https://developer.godaddy.com/ # 获取API Keys

API启动

cd project
python server.py --port=8888 --log_file_prefix=~/god_api.log
/api/get_domain # 获取域名列表
/api/get_record # 获取域名的所有A记录
/api/create_record # 创建域名的指定A记录
/api/remove_record # 删除域名的指定A记录
  • /api/get_domain
curl 'http://127.0.0.1:8888/api/get_domain'
domain: 80ers.com
domain: xinyuanxian.com
domain: yangbanjian.net
domain: zhinang.org
  • /api/get_record
curl -d 'domain=domain.io' 'http://127.0.0.1:8888/api/get_record'
A                1.1.1.1                test                 3600
A                2.2.2.2             chenliang               3600
  • /api/create_record
curl -d 'domain=domain.io&short_addr=x.x.x.x&a_record=xx' 'http://127.0.0.1:8888/api/create_record'
True:
{ 'errno': 200, 'result': 0,  'errmsg': '' }

False:
{ 'errno': 500, 'result': 1,  'errmsg': 'Another record with the same attributes already exists' }
  • /api/remove_record
curl -d 'domain=xxxx&a_record=xxxx' 'http://127.0.0.1:8888/api/remove_record'
{ 'errno': 200, 'result': 0,  'errmsg': '' }

godaddy's People

Watchers

James Cloos avatar chenlerry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.