2016-12-24 16 views
0

私はすでにJSONを持っていますが、APIはいつも私を持参:正しいJSONのAPIリクエストGoDaddyはドメイン購入

{ 
    "code": "INVALID_AGREEMENT_KEYS", 
    "message": "End-user must read and consent to all of the following legal agreements: DNPA", 
    "name": "ApiError" 
} 

私が試した:

{ 
    "url": "http://www.secureserver.net/agreements/ShowDoc.aspx?pageid=reg_sa&pl_id=1", 
    "agreementKey": "DNRA", 
    "content": "..content.." 
} 

が、それは私にこれを与える:

{ 
    "message": "request entity too large", 
    "expected": 268149, 
    "length": 268149, 
    "limit": 102400, 
    "type": "entity.too.large" 
} 

ジーンズ:

{ 
    "domain": "sistemasolutions.com", 
    "consent": { 
    "agreementKeys": [ 
     "DNRA" 
    ], 
    "agreedBy": "Luis Gonzalez", 
    "agreedAt": "2016-12-24T07:37:43+00:00" 
    }, 
    "period": 1, 
    "nameServers": [ 
    " " 
    ], 
    "renewAuto": true, 
    "privacy": false, 
    "contactRegistrant": { 
    "nameFirst": "Luis", 
    "nameMiddle": "", 
    "nameLast": "Gonzalez", 
    "organization": "Inquid", 
    "jobTitle": "CEO", 
    "email": "[email protected]", 
    "phone": "4491010645", 
    "fax": " ", 
    "addressMailing": { 
     "address1": "1501 India Street", 
     "address2": " ", 
     "city": "San Diego", 
     "state": "California", 
     "postalCode": "92101", 
     "country": "US" 
    } 
    }, 
    "contactAdmin": { 
    "nameFirst": "Luis", 
    "nameMiddle": "", 
    "nameLast": "Gonzalez", 
    "organization": "Inquid", 
    "jobTitle": "CEO", 
    "email": "[email protected]", 
    "phone": "+1.7737374427", 
    "fax": " ", 
    "addressMailing": { 
     "address1": "1501 India Street", 
     "address2": " ", 
     "city": "San Diego", 
     "state": "California", 
     "postalCode": "92101", 
     "country": "US" 
    } 
    }, 
    "contactTech": { 
    "nameFirst": "Luis", 
    "nameMiddle": "", 
    "nameLast": "Gonzalez", 
    "organization": "Inquid", 
    "jobTitle": "CEO", 
    "email": "[email protected]", 
    "phone": "+1.7737374427", 
    "fax": " ", 
    "addressMailing": { 
     "address1": "1501 India Street", 
     "address2": " ", 
     "city": "San Diego", 
     "state": "California", 
     "postalCode": "92101", 
     "country": "US" 
    } 
    }, 
    "contactBilling": { 
    "nameFirst": "Luis", 
    "nameMiddle": "", 
    "nameLast": "Gonzalez", 
    "organization": "Inquid", 
    "jobTitle": "CEO", 
    "email": "[email protected]", 
    "phone": "+1.7737374427", 
    "fax": " ", 
    "addressMailing": { 
     "address1": "1501 India Street", 
     "address2": " ", 
     "city": "San Diego", 
     "state": "California", 
     "postalCode": "92101", 
     "country": "US" 
    } 
    } 
} 
+0

あなたがしようとするものを追加してください。 –

答えて

0

問題は私のJSONが間違ったことだったし、それがどうあるべきかをチェックする方法は、POSTメソッドを使用することです: /V1 /ドメイン/購入/検証 に: https://api.godaddy.com/v1/domains/purchase/validate

方法Iであること間違っている部分があるべき日付形式

"consent": { 
    "agreementKeys": [ 
     "DNRA" 
    ], 
    "agreedBy": "Luis Gonzalez", 
    "agreedAt": "2016-12-24T07:37:43+00:00" 
    }, 

気づいた:

"consent": { 
    "agreementKeys":["DNRA"], 
    "agreedBy": "Luis Gonzalez", 
    "agreedAt": "2016-09-22T14:01:54.9571247Z" 
    }, 

そして、電話フォーマットも正しくありませんでした。

+0

購入依頼が成功しましたか? –

関連する問題