Making requests

Learn how to make and receives requests. Specific formats and error codes.

Learning to handle errors when making requests is an important key of having a great application. Below is an example request with a good & bad response.

POST https://api.noauth.cc/twitter/get-user

This is an example request which fetches a specific user's data on twitter.

Headers

NameTypeDescription

x-api-key*

String

NoAuth API Key

Request Body

NameTypeDescription

user_id*

String

Find user by their twitter ID

screen_name*

String

Find user by their twitter name

{
  "status": "success",
  "message": "Response from twitter...."
}

As you can see from the response, it will always return whether it was a success or not. If failed it will display the specific error that caused it.

Last updated