U2c Mobile API Documentation.
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by calling login method.
This endpoint allows you to fetch your access token..
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'cassie52@example.net',
'password' => 'password',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"success": true,
"message": "Login Successful",
"data": {
"token": "xyzAbc374672346",
"name": "Cassie",
"address": "Gujarat ",
}
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/helix-post-data';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/brands';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the brand.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/brand/564';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the brand.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/activation/plans/564';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/activation/plans-by-mdn/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the brand.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/refill/plans/564';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the plan.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/activation/plan/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the plan.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/refill/plan/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/activation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 16,
'plan_id' => 16,
'imei' => 4326.41688,
'first_name' => 'architecto',
'last_name' => 'architecto',
'email' => 'zbailey@example.net',
'address' => 'architecto',
'city' => 'architecto',
'state' => 'architecto',
'zipcode' => 4326.41688,
'sim_type' => 'esim',
'source' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/activation-calculation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'plan_id' => 4326.41688,
'month' => '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/refill';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'mdn' => 'bngzmi',
'plan_id' => 16,
'amount' => 4326.41688,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/refill-with-card';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'mdn' => 'bngzmi',
'plan_id' => 16,
'amount' => 4326.41688,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/portin';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 4326.41688,
'plan_id' => 4326.41688,
'imei' => '822569775449171',
'first_name' => 'architecto',
'last_name' => 'architecto',
'email' => 'zbailey@example.net',
'address' => 'architecto',
'city' => 'architecto',
'state' => 'architecto',
'zipcode' => 4326.41688,
'sim_type' => 'esim',
'mdn' => '1374491716806',
'account_number' => 'architecto',
'account_password' => 'architecto',
'authorizer_first_name' => 'architecto',
'authorizer_last_name' => 'architecto',
'authorizer_address' => 'architecto',
'authorizer_city' => 'architecto',
'authorizer_state' => 'architecto',
'authorizer_zipcode' => 4326.41688,
'phone' => '1374491716806',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/portin-with-card';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 4326.41688,
'plan_id' => 4326.41688,
'imei' => '822569775449171',
'first_name' => 'architecto',
'last_name' => 'architecto',
'email' => 'zbailey@example.net',
'address' => 'architecto',
'city' => 'architecto',
'state' => 'architecto',
'zipcode' => 4326.41688,
'sim_type' => 'esim',
'mdn' => '1374491716806',
'account_number' => 'architecto',
'account_password' => 'architecto',
'authorizer_first_name' => 'architecto',
'authorizer_last_name' => 'architecto',
'authorizer_address' => 'architecto',
'authorizer_city' => 'architecto',
'authorizer_state' => 'architecto',
'authorizer_zipcode' => 4326.41688,
'phone' => '1374491716806',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/helix/suspend';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/helix/deactivate';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/helix/resotre';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'mdn' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); The ID of the public.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/transaction/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/esim/qr';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 4326.41688,
'sim_no' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); The ID of the public.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/esim/qr/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
The ID of the public.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/esim/qr/v2/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status_code": 401,
"success": false,
"message": "Unauthenticated.",
"data": null
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/coupon-referral-code';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 'architecto',
'plan_id' => 'architecto',
'month' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/device/check-imei';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'imei' => '822569775449171',
'brand_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/getTaxRateByAddress';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/taxRatesCalculation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/login';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
'password' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/register';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'first_name' => 'b',
'last_name' => 'n',
'email' => 'ashly64@example.com',
'password' => 'pBNvYg',
'gender' => 'other',
'phone' => 'hwaykc',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/send-otp';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
'mdn' => 'm',
'brand_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/verify-otp';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
'mdn' => 'm',
'otp' => '569775',
'brand_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/check-email';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/cards';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/cards';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'card_name' => 'b',
'card_type' => 'n',
'name' => 'g',
'email' => 'rowan.gulgowski@example.com',
'phone_number' => 'dljnikhwaykcmyuw',
'country_code' => 'pwlvqw',
'address' => 'r',
'city' => 's',
'state' => 'i',
'zip_code' => 'tcpscqldzsnrwtuj',
'card_number' => 'architecto',
'payment_method_id' => 'n',
'brand_id' => 16,
'is_default' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); The ID of the card.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/cards/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
The ID of the card.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/cards/architecto';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); The ID of the card.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/cards/architecto';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/profile';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/profile';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'first_name' => 'b',
'last_name' => 'n',
'address' => 'g',
'city' => 'z',
'state' => 'm',
'zip_code' => 'iyvdljnikhwaykcm',
'date_of_birth' => '2022-01-31',
'gender' => 'female',
'password' => ']|{+-0pBNvYg',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/orders';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
The ID of the public.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/orders/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/latest-order';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
The ID of the usage.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/usage/architecto';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/autopays';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
The ID of the cancel.
$client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/customer/autopays/cancel/architecto';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'brand_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/forgot-password';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/reset-password';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
'token' => 'architecto',
'password' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); $client = new \GuzzleHttp\Client();
$url = 'https://api2.u2cmobile.com/api/validate-reset-token';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'gbailey@example.net',
'token' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));