{"id":27,"date":"2023-08-03T17:34:41","date_gmt":"2023-08-03T17:34:41","guid":{"rendered":"https:\/\/rechargevtu.com.ng\/page\/?page_id=27"},"modified":"2024-10-13T10:51:25","modified_gmt":"2024-10-13T10:51:25","slug":"api","status":"publish","type":"page","link":"https:\/\/uniqueteller.net\/page\/api\/","title":{"rendered":"api"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; specialty=&#8221;on&#8221; _builder_version=&#8221;4.10.7&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][\/et_pb_column][et_pb_column type=&#8221;2_3&#8243; specialty_columns=&#8221;2&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_row_inner _builder_version=&#8221;4.10.7&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column_inner saved_specialty_column_type=&#8221;2_3&#8243; _builder_version=&#8221;4.10.7&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.10.7&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<div id=\"introduction\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">Introduction<\/span><\/h2>\n<p class=\"api-subtitle\"><span style=\"color: #000000;\">Learn how to integrate our APIs into your application and build your own solution<\/span><\/p>\n<\/div>\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">API Basics<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">The UniqueTeller API gives you access to pretty much all the features you can use on our dashboard and lets you extend them for use in your application.<\/span><\/p>\n<\/div>\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">Sample Requests<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">We provide sample API calls next to each method using cURL. All you need to do is insert your specific parameters, and you can test the calls from the command line. See this tutorial on using cURL with APIs.<\/span><\/p>\n<\/div>\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">Requests and Response<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">Both request body data and response data are formatted as JSON. Content type for responses will always be application\/json.<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"apibalance\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">API Balance<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">Authenticate your API calls by including your secret key in the Authorization header of every request you make. You can manage your API keys from the dashboard.<\/span><\/p>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = [];<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/user&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization:<\/span><br \/><span style=\"color: #000000;\">hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8243;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"buyairtime\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">BUY AIRTIME<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = json_encode([&#8220;network&#8221; =&gt; &#8220;mtn&#8221;, &#8220;amount&#8221; =&gt; &#8220;50&#8221;, &#8220;phoneno&#8221; =&gt; &#8220;08136367086&#8221;]);<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/airtime&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization: hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8221;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"databundle\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">BUY DATA<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = json_encode([&#8220;datasize&#8221; =&gt; &#8220;500MB&#8221;, &#8220;phoneno&#8221; =&gt; &#8220;08136367086&#8221;]);<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/data&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization: hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8221;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"cablebundle\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">BUY CABLE<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = json_encode([&#8220;package&#8221; =&gt; &#8220;smallie&#8221;, &#8220;iuc&#8221; =&gt; &#8220;2229159680&#8221;]);<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/cabletv&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization:<\/span><br \/><span style=\"color: #000000;\">=hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8243;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"education\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">BUY EDUCATION<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = json_encode([&#8220;productid&#8221; =&gt; &#8220;waec&#8221;]);<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/vendeducation&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization: hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8221;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"electricity\">\n<div class=\"api-heading\">\n<h2 class=\"api-title\"><span style=\"color: #000000;\">BUY ELECTRICITY<\/span><\/h2>\n<p class=\"api-text\"><span style=\"color: #000000;\">$curl = curl_init();<\/span><br \/><span style=\"color: #000000;\">$body = json_encode([&#8220;disco&#8221; =&gt; &#8220;ibedc&#8221;, &#8220;meterNo&#8221; =&gt; &#8220;27132076089&#8221;, &#8220;amount&#8221; =&gt; 50]);<\/span><br \/><span style=\"color: #000000;\">curl_setopt_array($curl, array(<\/span><br \/><span style=\"color: #000000;\">CURLOPT_URL =&gt; &#8220;https:\/\/uniqueteller.net\/api\/electrcity&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_RETURNTRANSFER =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_ENCODING =&gt; &#8220;&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_MAXREDIRS =&gt; 10,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_TIMEOUT =&gt; 0,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_FOLLOWLOCATION =&gt; true,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_CUSTOMREQUEST =&gt; &#8220;POST&#8221;,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_POSTFIELDS =&gt; $body,<\/span><br \/><span style=\"color: #000000;\">CURLOPT_HTTPHEADER =&gt; array(<\/span><br \/><span style=\"color: #000000;\">&#8220;Content-Type: application\/json&#8221;,<\/span><br \/><span style=\"color: #000000;\">&#8220;Authorization: hfhk1ukeneqeyece7a6ufiwaxe5ici3a5ute5urajucivuyukfjhirage3u8&#8221;<\/span><br \/><span style=\"color: #000000;\">),<\/span><br \/><span style=\"color: #000000;\">));<\/span><br \/><span style=\"color: #000000;\">$response = curl_exec($curl);<\/span><br \/><span style=\"color: #000000;\">print_r($response);<\/span><\/p>\n<\/div>\n<\/div>\n<p>[\/et_pb_text][\/et_pb_column_inner][\/et_pb_row_inner][\/et_pb_column][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Learn how to integrate our APIs into your application and build your own solution API Basics The UniqueTeller API gives you access to pretty much all the features you can use on our dashboard and lets you extend them for use in your application. Sample Requests We provide sample API calls next to each [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-27","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/pages\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":4,"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/pages\/27\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/pages\/27\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/uniqueteller.net\/page\/wp-json\/wp\/v2\/media?parent=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}