API documentation

Credentials ยป POST Check

Check if the credentials are valid.

Arguments

  • site (Required)

    Valid site name

  • login (Required)

    Username of the given site

  • password (Required)

    Password of the given site

Request example

Check login and password for YouTube.

cURL

curl -X POST \
-d "site=youtube&login=ytlogin&password=ytpasswd&api_key=75b5744011e2dddbf2261e157505958b" \ 
--url "http://heyspread.com/api2/credentials/check"

Ruby

HeySpread::Credentials.valid?(:site => "youtube", :login => "ytlogin", :password => "ytpasswd")

PHP

HeySpread_Credentials::isValid("youtube", "ytlogin", "ytpasswd");

Response example

200 OK

<response>
  <valid>false</valid>
</response>

Explanations

  • <valid> can be "true" or "false"