Introduction
Introduction
Welcome to @jannah_opt('site_name')! Our API allows you to interact with @jannah_opt('site_name') services seamlessly. You can use it to purchase services and access information from our database.
We provide language bindings in PHP, Ruby, Python, React.js, and JavaScript. However, you can use any programming language of your choice to connect to our API endpoints.
This API documentation is designed to assist you through the integration process efficiently.
Thank you for choosing @jannah_opt('site_name')!
Authentication
Our API uses Bearer Authentication to generate an access token. You can find the authentication token in the sample response below.
Endpoint URL @jannah_opt('site_url')/api/user Code Sample $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "@jannah_opt('site_url')/api/user"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt( $ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer {{ $user->api_token }}", ] ); $json = curl_exec($ch); curl_close($ch); Expected Response { "status": "success", "balance": "{{ $user->wallet_balance }}", "username": "{{ $user->username }}" }