Jump to content
UBot Underground

Live Data Api How To Get


Recommended Posts

i dont have a specific example but let us say i want to get data of adwords api conversion each time a conversion happens, in such a case how will ubot get data, and update table inside ubot will it have to continously send data from ubot to api or something like that

Link to post
Share on other sites

Most api's have request limits and require authentication.

 

You usually are given an api key that you then "hash" using SHA-256 and set as an http header you use when making requests to the api. 

 

Since most api's have request limits, you usually have to space out your requests.  For instance, one affiliate network I use has 400 requests maximum per month.

 

The api documentation will tell you exactly what headers you need to set and how to create an api request using a url and the api's available parameters. The parameters you append to the url will determine what data is returned.

 

Sometimes the api requests return header tags with values that tell you how many objects (data) is available in the request. Sometimes it also tells you how many pages are available.  Knowing how many pages are available is particularly helpful when the api is limited, because each page request is a request. 

 

The data returned is often formatted with json.  To display the data in ubot you would want to use a json parser.  

  • Like 1
Link to post
Share on other sites

Most api's have request limits and require authentication.

 

You usually are given an api key that you then "hash" using SHA-256 and set as an http header you use when making requests to the api. 

 

Since most api's have request limits, you usually have to space out your requests.  For instance, one affiliate network I use has 400 requests maximum per month.

 

The api documentation will tell you exactly what headers you need to set and how to create an api request using a url and the api's available parameters. The parameters you append to the url will determine what data is returned.

 

Sometimes the api requests return header tags with values that tell you how many objects (data) is available in the request. Sometimes it also tells you how many pages are available.  Knowing how many pages are available is particularly helpful when the api is limited, because each page request is a request. 

 

The data returned is often formatted with json.  To display the data in ubot you would want to use a json parser.  

Unless you have a place to send the hash key to the server you don't send the hashed key. If you send the hash key it is useless to hash it in the first place because anyone sniffing your HTTP traffic can see it.

 

The only purpose to hash it would be to keep it on your machine to obfuscate your API key so no one gets a hold of it. However, most services allow you to create new API keys at will if someone does get a hold of your API key. So, hashing is a personal preference in my experiences.

 

Not all API's are created the same some have APP Secret and APP secret key as well.

 

In the case of Python if a service is popular all of the hard work is done for you, usually someone creates a "package"(library/SDK) like a ubot plugin.

 

An API key is so someone doesn't have your username and password to control your account.

 

Hope that helps.

 

Regards,

Nick

Link to post
Share on other sites

Unless you have a place to send the hash key to the server you don't send the hashed key. If you send the hash key it is useless to hash it in the first place because anyone sniffing your HTTP traffic can see it.

 

The only purpose to hash it would be to keep it on your machine to obfuscate your API key so no one gets a hold of it. However, most services allow you to create new API keys at will if someone does get a hold of your API key. So, hashing is a personal preference in my experiences.

 

Not all API's are created the same some have APP Secret and APP secret key as well.

 

In the case of Python if a service is popular all of the hard work is done for you, usually someone creates a "package"(library/SDK) like a ubot plugin.

 

An API key is so someone doesn't have your username and password to control your account.

 

Hope that helps.

 

Regards,

Nick

 

This explains why the api I use a hashed key with requires me to register the IP's I will be making requests from.  Good to know.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...