curl --request POST \
  --url https://wallet.digiro.in/api/giro/ \
  --header 'accept: application/json' \
  --header 'authorization: Basic 628xxxxxxxxx token_xxxxxx' \
  --header 'content-type: application/json' \
  --data '{"phone": "62xxxxxxxxx"}'
var unirest = require("unirest");

var req = unirest("POST", "https://wallet.digiro.in/api/giro/");

req.headers({
  "authorization": "Basic 628xxxxxxxxx token_xxxxxx",
  "content-type": "application/json",
  "accept": "application/json"
});

req.type("json");
req.send({
  "phone": "62xxxxxxxxx"
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
HttpResponse<String> response = Unirest.post("https://wallet.digiro.in/api/giro/")
  .header("accept", "application/json")
  .header("content-type", "application/json")
  .header("authorization", "Basic 628xxxxxxxxx token_xxxxxx")
  .body("{\"phone\": \"62xxxxxxxxx\"}")
  .asString();
import requests

url = "https://wallet.digiro.in/api/giro/"

payload = "{\"phone\": \"62xxxxxxxxx\"}"
headers = {
    'accept': "application/json",
    'content-type': "application/json",
    'authorization': "Basic 628xxxxxxxxx token_xxxxxx"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://wallet.digiro.in/api/giro/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"phone\": \"62xxxxxxxxx\"}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic 628xxxxxxxxx token_xxxxxx",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
require 'uri'
require 'net/http'

url = URI("https://wallet.digiro.in/api/giro/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["authorization"] = 'Basic 628xxxxxxxxx token_xxxxxx'
request.body = "{\"phone\": \"62xxxxxxxxx\"}"

response = http.request(request)
puts response.read_body
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"accept": @"application/json",
                           @"content-type": @"application/json",
                           @"authorization": @"Basic 628xxxxxxxxx token_xxxxxx" };
NSDictionary *parameters = @{ @"phone": @"62xxxxxxxxx" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://wallet.digiro.in/api/giro/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://wallet.digiro.in/api/giro/"

	payload := strings.NewReader("{\"phone\": \"62xxxxxxxxx\"}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("authorization", "Basic 628xxxxxxxxx token_xxxxxx")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}