diff options
author | Antony Kellermann | 2018-05-27 13:23:13 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-05-27 13:23:13 -0400 |
commit | b84d32092615a3d0ec8f5fed98b035207f95807b (patch) | |
tree | e04f89175f11a6f26ef8d6d90583d6bb9497b117 /api.h | |
parent | e56b9b5426b379cca264de1810ee91bbf024d77c (diff) | |
download | aur-b84d32092615a3d0ec8f5fed98b035207f95807b.tar.gz |
Removed google url shortener and options for post fields in curl
Diffstat (limited to 'api.h')
-rw-r--r-- | api.h | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -45,10 +45,9 @@ size_t api_string_writefunc(void* ptr, size_t size, size_t nmemb, String* pStrin * If post_field is not NULL, performs a HTTP POST with the given parameters. Otherwise, performs a HTTP GET. Response * data is stored and returned in a String. * @param url API url to GET/POST - * @param post_field data needed for POST * @return NULL if no response from server. Otherwise, String containing data. */ -String* api_curl_data(const char* url, const char* post_field); +String* api_curl_data(const char* url); /** * Returns a double* containing the current price and yesterday's price of a stock or cryptocurrency. @@ -147,13 +146,6 @@ Info* morningstar_get_info(const char* ticker_name_string); Info* coinmarketcap_get_info(const char* ticker_name_string); /** - * Given a url, returns a shorter link using Google's URL-shortener API. - * @param url_string the link to shorten - * @return the shortened link - */ -char* google_shorten_link(const char* url_string); - -/** * Destroys Info object and frees memory. Sets the pointer to the Info to NULL * @param phInfo the Info to destroy */ |