Get reqest Godaddy api

termi

Client
Регистрация
30.10.2012
Сообщения
67
Благодарностей
2
Баллы
8
I want to request bulk domain avability from godaddy API but I cant figure out how to make it work. Here documentation https://developer.godaddy.com/doc/endpoint/domains#/v1/availableBulk

I post too
fallowing code in post field:

Код:
curl -X 'POST' \
  'https://api.ote-godaddy.com/v1/domains/available?checkType=FAST' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: sso-key UzQxLikm_46KxDFnbjN7cQjmw6wocia:46L26ydpkwMaKZV6uVdDWe' \
  -d '[
  "dfgdfgfd.com","dsffdsfdsfds.co"
]'
But i get response

{"code":"MISSING_CREDENTIALS","message":"Unauthorized : Credentials must be specified"}
 

Oleg-KC

Client
Регистрация
17.02.2020
Сообщения
168
Благодарностей
56
Баллы
28
choose the post cube in pm
insert the link in the right place for the link.
"-H" is the headers (everything in this one you insert into the headers without -H)
"-d" is the request body (into the body without -b)
 

termi

Client
Регистрация
30.10.2012
Сообщения
67
Благодарностей
2
Баллы
8
thx i had too also change data/type for other and "application/json" but it works
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)