我已经有一个JSON,但API总是给我带来:
{
"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"
}
型
Json是:
{
"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"
}
}
}
型
2条答案
按热度按时间txu3uszq1#
问题是我的json是不正确的,检查它应该是如何使用POST方法:/v1/domains/purchase/validate in:https://api.godaddy.com/v1/domains/purchase/validate
这就是我如何意识到错误的部分是日期格式
字符串
这应该是:
型
而且电话格式也不正确。
5tmbdcev2#
这一行的原因实际上不是格式化,它希望你在设置privacy为true时阅读并批准合同,因为它没有端点,如果你设置privacy为false,问题就解决了。