Key |
Value |
Description |
---|---|---|
name (string)
|
DEMOABCD
|
REQUIRED
|
username (string) Only characters or number, not space or special characters
|
DEMOABCD
|
REQUIRED
|
email (string)
|
DEMOABCD@GMAIL.COM
|
REQUIRED
|
mobile_no (number) 10 Digit only
|
0000012345
|
REQUIRED
|
curl --location --request POST 'https://obligr.io/api_v2/user/signup' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'name=DEMOABCD' \ --data-urlencode 'username=DEMOABCD' \ --data-urlencode 'email=DEMOABCD@GMAIL.COM' \ --data-urlencode 'mobile_no=0000012345'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/signup", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/x-www-form-urlencoded", "Cookie: [COOKIES]" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
https://demo.obligr.com/api_v2/user/signup/?api_key=[YOUR_API_KEY]&name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345
var client = new RestClient("https://obligr.io/api_v2/user/signup"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]"); request.AddHeader("Content-Type", "application/x-www-form-urlencoded"); request.AddHeader("Cookie", "[COOKIES]"); request.AddParameter("name", "DEMOABCD"); request.AddParameter("username", "DEMOABCD"); request.AddParameter("email", "DEMOABCD@GMAIL.COM"); request.AddParameter("mobile_no", "0000012345"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded', 'Cookie': '[COOKIES]' } conn.request("POST", "/api_v2/user/signup", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); RequestBody body = RequestBody.create(mediaType, "name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/signup") .method("POST", body) .addHeader("Authorization", "[YOUR_API_KEY]") .addHeader("Content-Type", "application/x-www-form-urlencoded") .addHeader("Cookie", "[COOKIES] ") .build(); Response response = client.newCall(request).execute();
var axios = require('axios'); var qs = require('qs'); var data = qs.stringify({ 'name': 'DEMOABCD', 'username': 'DEMOABCD', 'email': 'DEMOABCD@GMAIL.COM', 'mobile_no': '0000012345' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/signup', headers: { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded', 'Cookie': '[COOKIES]' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
var settings = { "url": "https://obligr.io/api_v2/user/signup", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "[COOKIES] " }, "data": { "name": "DEMOABCD", "username": "DEMOABCD", "email": "DEMOABCD@GMAIL.COM", "mobile_no": "0000012345" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: “User `DEMOABCD` created success. Password sent on email or mobile.”
}