Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
| Environment | Base URL |
|---|---|
| Development | https://api-dev.getpass.ph |
| Staging | https://api-staging.getpass.ph |
| UAT | https://api-uat.getpass.ph |
| Production | https://api-prod.getpass.ph |
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_ACCESS_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your Authentication dashboard.
Authentication
Authentication
GETPRO Login
Use this endpoint to login as a driver for the GETPRO app.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/login/getpro"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": null,
"password": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login/getpro';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'username' => null,
'password' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"tokens": {
"AccessToken": "eyJraWQiOiJxWWpnVU...",
"ExpiresIn": 43200,
"TokenType": "Bearer",
"RefreshToken": "eyJjdHkiOiJKV1QiL...",
"IdToken": "eyJraWQiOiJZb05wXC84UW..."
},
"monitor": {}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
LGU Sign Up
Use this endpoint to sign up a user for the LGU app.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/lgu/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "",
"email": "pkshlerin@example.net",
"prefixName": "",
"firstName": "",
"middleName": "",
"lastName": "",
"password": "",
"hasAcceptedTerms": true,
"organizationId": 1,
"mobile_number": "jq",
"birthday": "2019-03-26",
"gender": "tnoznresaphcnr",
"address": {
"country": "sy",
"region": "mzqijnjoyddxcvvtgmaa",
"province": "goxeasid",
"municity": "dhdpzgzvdbhnwtiqtsm",
"barangay": "gmkdqux",
"unit_street": "cbvmmcsinuxnrdsk"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lgu/register';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'username' => '',
'email' => 'pkshlerin@example.net',
'prefixName' => '',
'firstName' => '',
'middleName' => '',
'lastName' => '',
'password' => '',
'hasAcceptedTerms' => true,
'organizationId' => 1.0,
'mobile_number' => 'jq',
'birthday' => '2019-03-26',
'gender' => 'tnoznresaphcnr',
'address' => [
'country' => 'sy',
'region' => 'mzqijnjoyddxcvvtgmaa',
'province' => 'goxeasid',
'municity' => 'dhdpzgzvdbhnwtiqtsm',
'barangay' => 'gmkdqux',
'unit_street' => 'cbvmmcsinuxnrdsk',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"username": "snow6"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Love Bus Sign Up
Use this endpoint to sign up a user for the Love Bus app.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/lovebus/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "cfntfbdyqgqhkbwxuuxdsylre",
"password": "*orTi&[,9T5{Ul\/IEH",
"hasAcceptedTerms": true,
"firstName": "enrhmzbnqgftstjwplyd",
"middleName": "vlljxfxitzadjqb",
"lastName": "p",
"birthday": "2015-03-11",
"gender": "female",
"profilePicture": "iure",
"psgcOldCode": "rerum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/register';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'username' => 'cfntfbdyqgqhkbwxuuxdsylre',
'password' => '*orTi&[,9T5{Ul/IEH',
'hasAcceptedTerms' => true,
'firstName' => 'enrhmzbnqgftstjwplyd',
'middleName' => 'vlljxfxitzadjqb',
'lastName' => 'p',
'birthday' => '2015-03-11',
'gender' => 'female',
'profilePicture' => 'iure',
'psgcOldCode' => 'rerum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"userId": 1,
"username": "snow6"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Love Bus Web Sign Up
Use this endpoint to sign up a user for the Love Bus web app.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/lovebus/web-register"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('username', 'qmyivxvanhgmnquirlof');
body.append('password', '~aHW%T,Gcxrp|');
body.append('hasAcceptedTerms', '1');
body.append('firstName', 'vhlqebhzzycmbdcxg');
body.append('middleName', 'cljkkrisbil');
body.append('lastName', 'eencsdlzxlpa');
body.append('birthday', '2017-08-04');
body.append('gender', 'male');
body.append('email', 'botsford.boyd@example.net');
body.append('photoId', document.querySelector('input[name="photoId"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/web-register';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'username',
'contents' => 'qmyivxvanhgmnquirlof'
],
[
'name' => 'password',
'contents' => '~aHW%T,Gcxrp|'
],
[
'name' => 'hasAcceptedTerms',
'contents' => '1'
],
[
'name' => 'firstName',
'contents' => 'vhlqebhzzycmbdcxg'
],
[
'name' => 'middleName',
'contents' => 'cljkkrisbil'
],
[
'name' => 'lastName',
'contents' => 'eencsdlzxlpa'
],
[
'name' => 'birthday',
'contents' => '2017-08-04'
],
[
'name' => 'gender',
'contents' => 'male'
],
[
'name' => 'email',
'contents' => 'botsford.boyd@example.net'
],
[
'name' => 'photoId',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpWJrDFR', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"username": "snow6"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Love Bus Social token exchange
Use this endpoint to exchange tokens with a social identity provider.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/lovebus/login/google"
);
const params = {
"token": "EAAGmIgdECYkBO3gZApYQS8fugLD...",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/login/google';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'token' => 'EAAGmIgdECYkBO3gZApYQS8fugLD...',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"tokens": {
"AccessToken": "eyJraWQiOiJxWWpnVU...",
"ExpiresIn": 43200,
"TokenType": "Bearer",
"RefreshToken": "eyJjdHkiOiJKV1QiL...",
"IdToken": "eyJraWQiOiJZb05wXC84UW..."
},
"user": {},
"others": {}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Love Bus Login
Use this endpoint to login love bus
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/lovebus/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social token exchange
Use this endpoint to exchange tokens with a social identity provider.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/login/google"
);
const params = {
"token": "EAAGmIgdECYkBO3gZApYQS8fugLD...",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login/google';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'token' => 'EAAGmIgdECYkBO3gZApYQS8fugLD...',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful.",
"details": {
"tokens": {
"AccessToken": "eyJraWQiOiJxWWpnVU...",
"ExpiresIn": 43200,
"TokenType": "Bearer",
"RefreshToken": "eyJjdHkiOiJKV1QiL...",
"IdToken": "eyJraWQiOiJZb05wXC84UW..."
},
"user": {},
"others": {}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GETPASS Login
Use this endpoint to login GETPASS
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate access token
Use this endpoint to generate access token using your client id and client secret
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/partners/v1/oauth2/token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"grant_type": null,
"client_id": null,
"client_secret": null,
"scope": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/partners/v1/oauth2/token';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'grant_type' => null,
'client_id' => null,
'client_secret' => null,
'scope' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
GET api/test
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/test"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/test';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/data-deletion
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/data-deletion"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/data-deletion';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/ticket-draw
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/ticket-draw"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/ticket-draw';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GETPRO
APIs for GETPRO
Get Monitor features and functions
requires authentication
Use this endpoint to get all features and functions.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/getpro/driver/features-functions"
);
const params = {
"vehicleId": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/driver/features-functions';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'vehicleId' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Monitor settings
requires authentication
Use this endpoint to get settings for monitor
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/getpro/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/settings';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social Work
This is for Social Work
Find Subject via Fuzzy
requires authentication
Use this endpoint to find a subject for social work via Fuzzy.
Find Subject
requires authentication
Use this endpoint to find a subject for social work.
GETPRO Handoff
Issues and revokes per-device signing capabilities used to sign trip-handoff envelopes. Tokens are short-lived and auto-rotated when re-issued for a deviceId.
Issue a handoff capability token for a device.
requires authentication
Auto-revokes any prior active capability for the same deviceId. Returns the 32-byte signing key once — the client must persist it.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/handoff/capabilities"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"deviceId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/capabilities';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'deviceId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoke a specific capability. The bearer's userId must own the capability.
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/handoff/capabilities//revoke"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/capabilities//revoke';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Record an initiated handoff session.
requires authentication
Idempotent by sessionId.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/handoff/sessions"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null,
"tripCode": null,
"reason": null,
"deviceId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/sessions';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
'tripCode' => null,
'reason' => null,
'deviceId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Look up a handoff session by id.
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/handoff/sessions/"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/sessions/';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (405):
Show headers
allow: POST
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The GET method is not supported for route api/v1/handoff/sessions. Supported methods: POST.",
"exception": "Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
"line": 122,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
"line": 107,
"function": "requestMethodNotAllowed",
"class": "Illuminate\\Routing\\AbstractRouteCollection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
"line": 41,
"function": "getRouteForMethods",
"class": "Illuminate\\Routing\\AbstractRouteCollection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php",
"line": 162,
"function": "handleMatchedRoute",
"class": "Illuminate\\Routing\\AbstractRouteCollection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 761,
"function": "match",
"class": "Illuminate\\Routing\\RouteCollection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "findRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Commit a handoff (envelope + ack).
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/handoff/commit"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"envelope": {
"v": "1",
"envelope_id": "ae3b5bee-7342-39f6-b589-5063ffa3379d",
"session_id": "310e1130-bacb-308b-86a9-43628ad1afe2",
"reason": "OTHER",
"source": {
"device_id": "sxbs",
"driver_id": "nwslmkudioy",
"vehicle_id": "vtblfagruirkn"
},
"target": {
"device_id": "vmudzhjgw",
"driver_id": "jifkg"
},
"trip": {
"id": "quasi",
"trip_code": "gvobeeowtylkxfnz",
"route_id": "et",
"vehicle_id": "dolorem",
"driver_id": "non",
"origin_id": "ipsam",
"current_stop_id": "ipsam",
"start_time": "sint",
"status": "perferendis"
},
"taps": [
"aut"
],
"unsynced_events": [
"incidunt"
],
"totals": {
"tap_count": 16,
"last_lamport": 4
},
"capability_token_id": "8547f3b7-e4c1-32f4-96ee-a20f229631cf",
"transferred_at": "2026-05-11T04:02:46",
"signature": "ahhmzcbngfjejs"
},
"ack": {
"v": "1",
"envelope_id": "049a4032-8ac5-3a38-9120-ff862b4e6b90",
"applied_at": "2026-05-11T04:02:46",
"target_device_id": "voluptatum",
"target_capability_token_id": "f3017114-eeef-3075-bc72-d3db6cd60f51",
"signature": "kuhty"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/commit';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'envelope' => [
'v' => '1',
'envelope_id' => 'ae3b5bee-7342-39f6-b589-5063ffa3379d',
'session_id' => '310e1130-bacb-308b-86a9-43628ad1afe2',
'reason' => 'OTHER',
'source' => [
'device_id' => 'sxbs',
'driver_id' => 'nwslmkudioy',
'vehicle_id' => 'vtblfagruirkn',
],
'target' => [
'device_id' => 'vmudzhjgw',
'driver_id' => 'jifkg',
],
'trip' => [
'id' => 'quasi',
'trip_code' => 'gvobeeowtylkxfnz',
'route_id' => 'et',
'vehicle_id' => 'dolorem',
'driver_id' => 'non',
'origin_id' => 'ipsam',
'current_stop_id' => 'ipsam',
'start_time' => 'sint',
'status' => 'perferendis',
],
'taps' => [
'aut',
],
'unsynced_events' => [
'incidunt',
],
'totals' => [
'tap_count' => 16,
'last_lamport' => 4,
],
'capability_token_id' => '8547f3b7-e4c1-32f4-96ee-a20f229631cf',
'transferred_at' => '2026-05-11T04:02:46',
'signature' => 'ahhmzcbngfjejs',
],
'ack' => [
'v' => '1',
'envelope_id' => '049a4032-8ac5-3a38-9120-ff862b4e6b90',
'applied_at' => '2026-05-11T04:02:46',
'target_device_id' => 'voluptatum',
'target_capability_token_id' => 'f3017114-eeef-3075-bc72-d3db6cd60f51',
'signature' => 'kuhty',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GETPRO Pairing
QR-pairing login: tablet shows QR + 2-digit matching code; the driver scans on GETPASS and approves. Cognito tokens are issued via Custom Auth flow once the tablet observes APPROVED status.
Init pairing session
Called by the GETPRO tablet to start a QR-pairing login.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/init"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"deviceId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/init';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'deviceId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exchange pairing session for Cognito tokens
Called by the GETPRO tablet after polling observes APPROVED status. Triggers Cognito Custom Auth flow; the Verify Lambda calls /internal/verify to validate. Returns the same envelope as /v1/auth/login/getpro so the tablet can reuse existing token-handling code unchanged.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/exchange"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null,
"deviceId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/exchange';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
'deviceId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Internal — verify pairing session
Called by the Cognito Verify Auth Challenge Lambda only. Protected by HMAC via pairing.hmac middleware. Single-use: the session is deleted regardless of validity to prevent replay.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/verify"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null,
"username": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/verify';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
'username' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Internal — fetch current pairing-session state
Called by the get-api WebSocket Lambda when a tablet subscribes, to bootstrap initial state and close the race window between /init's NotifyPairingStatusJob and the WS subscribe arrival. Protected by HMAC.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/state"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/state';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get pairing session status
Polled by the GETPRO tablet at config('pairing.poll_interval_ms').
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/01HK7M0X9Z6Y4S5N7QH8B3VRGF"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": "12e8f0e1-6252-33a0-bbc8-c091012f7c06"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/01HK7M0X9Z6Y4S5N7QH8B3VRGF';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => '12e8f0e1-6252-33a0-bbc8-c091012f7c06',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Scan pairing session
requires authentication
Called by the driver's GETPASS phone after scanning the QR. Authed via Bearer IdToken.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/scan"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/scan';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Approve pairing session
requires authentication
Called by the driver's GETPASS phone after visually confirming the matching code.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/approve';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Deny pairing session
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/deny"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sessionId": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/deny';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sessionId' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GETSET
Create Notification
requires authentication
Use this endpoint to create push notification
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/partners/v1/getset/create-notification"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('filterBy', 'organization');
body.append('filterValue', 'quo');
body.append('notifTitle', 'embhywljdyilpwrvi');
body.append('notifText', 'bn');
body.append('notifType', 'push');
body.append('notifPicURL', 'http://maggio.org/');
body.append('notifAction', 'nihil');
body.append('notifAction2', 'veniam');
body.append('notifPic', document.querySelector('input[name="notifPic"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/partners/v1/getset/create-notification';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'filterBy',
'contents' => 'organization'
],
[
'name' => 'filterValue',
'contents' => 'quo'
],
[
'name' => 'notifTitle',
'contents' => 'embhywljdyilpwrvi'
],
[
'name' => 'notifText',
'contents' => 'bn'
],
[
'name' => 'notifType',
'contents' => 'push'
],
[
'name' => 'notifPicURL',
'contents' => 'http://maggio.org/'
],
[
'name' => 'notifAction',
'contents' => 'nihil'
],
[
'name' => 'notifAction2',
'contents' => 'veniam'
],
[
'name' => 'notifPic',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpS8BJ7O', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
KYC
Submit Government ID
requires authentication
Use this endpoint to submit government id
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/kyc/submit-gov-id"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('id_type', '');
body.append('id_number', '');
body.append('id_front', document.querySelector('input[name="id_front"]').files[0]);
body.append('id_back', document.querySelector('input[name="id_back"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/kyc/submit-gov-id';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'id_type',
'contents' => ''
],
[
'name' => 'id_number',
'contents' => ''
],
[
'name' => 'id_front',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpX2AGM2', 'r')
],
[
'name' => 'id_back',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpGF4hOF', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retrieve identities
requires authentication
Use this endpoint to retrieve identities
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/kyc/retrieve-identities"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/kyc/retrieve-identities';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Loyalty Program
Get rider's loyalty dashboard data
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/dashboard"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/dashboard';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get rider's loyalty leaderboard data
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/leaderboard"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/leaderboard';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Loyalty Program Ranking
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/ranking"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/ranking';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Convert loyalty reward points to GET wallet points
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/convert"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 74
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/convert';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => 74,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Loyalty Program History
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/history"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/history';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Loyalty Program Grow Motion
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/rewards/loyalty/grow"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/grow';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Map Tracker
Get Vehicle Information Use this endpoint to get vehicle information.
requires authentication
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/vehicle-info"
);
const params = {
"vid": "b268",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/vehicle-info';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'vid' => 'b268',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'a.alertTypeOther' in 'field list' (Connection: mysql, SQL: \n WITH latest_trip AS (\n SELECT *\n FROM trips\n WHERE vehicleId = (\n SELECT id FROM vehicles WHERE vid = b268\n LIMIT 1\n )\n ORDER BY id DESC\n LIMIT 1\n ),\n\n tap_data AS (\n SELECT\n ti.id AS tapInId,\n ti.tripId,\n ti.riderId,\n u.name AS riderName,\n u.userSenior,\n u.userPWD,\n u.userStudent,\n ti.originStopId,\n s.name AS originStopName,\n ti.tapAt AS tapInAt,\n to2.destinationStopId,\n s2.name AS destinationStopName,\n to2.tapAt AS tapOutAt,\n ti.quantity,\n TIMESTAMPDIFF(SECOND, ti.tapAt, to2.tapAt) AS rideDurationSeconds,\n TIMESTAMPDIFF(MINUTE, ti.tapAt, to2.tapAt) AS rideDurationMinutes,\n CASE\n WHEN to2.tapInId IS NULL THEN 1\n ELSE 0\n END AS isActive\n FROM tap_in ti\n LEFT JOIN tap_out to2 ON to2.tapInId = ti.id\n LEFT JOIN users u ON u.id = ti.riderId\n LEFT JOIN stops s ON s.id = ti.originStopId\n LEFT JOIN stops s2 ON s2.id = to2.destinationStopId\n WHERE ti.tripId = (SELECT id FROM latest_trip)\n ),\n\n trip_activity_data AS (\n SELECT\n ta.tripId,\n ta.stopId,\n s.name AS stopName,\n ta.status,\n ta.createdAt,\n ta.updatedAt,\n ta.longitude,\n ta.latitude,\n ta.odometer,\n ta.soc,\n TIMESTAMPDIFF(\n SECOND,\n LAG(ta.createdAt) OVER (PARTITION BY ta.tripId ORDER BY ta.createdAt),\n ta.createdAt\n ) AS durationSeconds,\n TIMESTAMPDIFF(\n MINUTE,\n LAG(ta.createdAt) OVER (PARTITION BY ta.tripId ORDER BY ta.createdAt),\n ta.createdAt\n ) AS durationMinutes\n FROM trip_activity ta\n LEFT JOIN stops s ON s.id = ta.stopId\n WHERE ta.tripId = (SELECT id FROM latest_trip)\n )\n\n SELECT\n v.id AS vehicleId,\n v.plateNumber,\n v.vid,\n v.status AS vehicleStatus,\n v.maxSeat,\n v.maxStand,\n\n t.id AS tripId,\n t.tripCode,\n t.status AS tripStatus,\n t.startTime,\n t.endTime,\n\n r.id AS routeId,\n r.name AS routeName,\n u.name AS driverName,\n o.name AS originName,\n d.name AS destinationName,\n cs.name AS currentStopName,\n\n (SELECT COUNT(*) FROM tap_data WHERE isActive = 1) AS passengerCount,\n\n (\n SELECT JSON_ARRAYAGG(\n JSON_OBJECT(\n 'tapInId', tapInId,\n 'riderId', riderId,\n 'riderName', riderName,\n 'originStopId', originStopId,\n 'originStopName', originStopName,\n 'tapInAt', tapInAt,\n 'userSenior', userSenior,\n 'userPWD', userPWD,\n 'userStudent', userStudent,\n 'quantity', quantity\n )\n )\n FROM tap_data\n WHERE isActive = 1\n ) AS activePassengers,\n\n (\n SELECT JSON_ARRAYAGG(\n JSON_OBJECT(\n 'tapInId', tapInId,\n 'riderId', riderId,\n 'riderName', riderName,\n 'originStopId', originStopId,\n 'originStopName', originStopName,\n 'tapInAt', tapInAt,\n 'tapOutAt', tapOutAt,\n 'destinationStopId', destinationStopId,\n 'destinationStopName', destinationStopName,\n 'rideDurationSeconds', rideDurationSeconds,\n 'rideDurationMinutes', rideDurationMinutes,\n 'userSenior', userSenior,\n 'userPWD', userPWD,\n 'userStudent', userStudent,\n 'quantity', quantity\n )\n )\n FROM tap_data\n WHERE isActive = 0\n ) AS tappedOutPassengers,\n\n (\n SELECT JSON_ARRAYAGG(\n JSON_OBJECT(\n 'stopId', stopId,\n 'stopName', stopName,\n 'status', status,\n 'createdAt', createdAt,\n 'updatedAt', updatedAt,\n 'longitude', longitude,\n 'latitude', latitude,\n 'odometer', odometer,\n 'soc', soc,\n 'durationSeconds', durationSeconds,\n 'durationMinutes', durationMinutes\n )\n )\n FROM trip_activity_data\n ) AS tripActivity,\n\n (\n SELECT JSON_ARRAYAGG(\n JSON_OBJECT(\n 'id', a.id,\n 'alertTime', a.alertTime,\n 'alertVehicle', a.alertVehicle,\n 'alertMonitor', a.alertMonitor,\n 'alertStatus', a.alertStatus,\n 'alertType', a.alertType,\n 'alertTypeOther', a.alertTypeOther,\n 'alertSource', a.alertSource,\n 'alertDetail', a.alertDetail,\n 'alertResponse', a.alertResponse,\n 'alertTrip', a.alertTrip,\n 'alertSubject', a.alertSubject,\n 'alertCreate', a.alertCreate,\n 'dateResponded', a.dateResponded,\n 'dateClosed', a.dateClosed,\n 'alertResponder', a.alertResponder,\n 'alertCloser', a.alertCloser,\n 'alertBy', a.alertBy,\n 'updatedOn', a.updatedOn,\n 'updatedBy', a.updatedBy,\n 'alertLocation', a.alertLocation,\n 'alertStatusInc', a.alertStatusInc,\n 'incStatus', a.incStatus,\n 'incFault', a.incFault,\n 'incAction', a.incAction,\n 'incOffense', a.incOffense,\n 'incType', a.incType,\n 'incTypeOther', a.incTypeOther,\n 'incMonitor', a.incMonitor,\n 'incTime', a.incTime,\n 'incLocation', a.incLocation,\n 'incVehicle', a.incVehicle,\n 'incRoute', a.incRoute,\n 'incArea', a.incArea,\n 'incDetails', a.incDetails,\n 'detailOther', a.detailOther,\n 'detailThird', a.detailThird,\n 'detailWitness', a.detailWitness,\n 'detailAuthority', a.detailAuthority,\n 'accountSubject', a.accountSubject,\n 'accountOperations', a.accountOperations,\n 'accountOther', a.accountOther,\n 'accountThird', a.accountThird,\n 'accountWitness', a.accountWitness,\n 'accountAuthority', a.accountAuthority,\n 'alertRoute', a.alertRoute,\n 'alertArea', a.alertArea,\n 'typeEmployment', a.typeEmployment\n )\n )\n FROM alert a\n WHERE a.alertVehicle = v.id\n AND a.alertTrip = t.id\n ORDER BY a.id DESC\n ) AS alerts\n\n FROM latest_trip t\n JOIN vehicles v ON v.id = t.vehicleId\n LEFT JOIN routes r ON r.id = t.routeId\n LEFT JOIN users u ON u.id = t.driverId\n LEFT JOIN stops o ON o.id = t.originId\n LEFT JOIN stops d ON d.id = t.destinationId\n LEFT JOIN stops cs ON cs.id = t.currentStopId\n )",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 813,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 767,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 398,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 344,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php",
"line": 456,
"function": "selectOne",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
"line": 357,
"function": "__call",
"class": "Illuminate\\Database\\DatabaseManager",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/app/Http/Controllers/V1/Demo/MapTrackerController.php",
"line": 38,
"function": "__callStatic",
"class": "Illuminate\\Support\\Facades\\Facade",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 46,
"function": "vehicle_info",
"class": "App\\Http\\Controllers\\V1\\Demo\\MapTrackerController",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 206,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 806,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/app/Http/Middleware/ForceJsonResponse.php",
"line": 19,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "App\\Http\\Middleware\\ForceJsonResponse",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Maya
Points Top Up
requires authentication
Use this endpoint to top up points via Paymaya
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/maya/points-top-up"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"items": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/maya/points-top-up';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'items' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200, success):
{
"message": "Request was successful."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Promo
Redeem Promo
requires authentication
Use this endpoint to redeem the promo.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/promo/redeem"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"qrcode": "quod"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/promo/redeem';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'qrcode' => 'quod',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Time Recording
Authentication
Get User Organization with Timerec
requires authentication
Use this endpoint to get the user's organizations with time recording function
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/timerec/organizations"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/organizations';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Time Record History
requires authentication
Use this endpoint to get the time records of the user by time period.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/timerec/list/1"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/list/1';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check Time Record
requires authentication
Use this endpoint to check the time record for the specific date.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/timerec/check"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timeperiodId": 6,
"date": "2002-01-25"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/check';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timeperiodId' => 6,
'date' => '2002-01-25',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Button State for Time Record
requires authentication
Use this endpoint to get the button state for the time record.
Save Time Record
requires authentication
Use this endpoint to save the time record.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/timerec/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('dateType', 'yesterday');
body.append('timeperiodId', '20');
body.append('type', 'break');
body.append('location[latitude]', '-89');
body.append('location[longitude]', '-180');
body.append('picture', document.querySelector('input[name="picture"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/submit';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'dateType',
'contents' => 'yesterday'
],
[
'name' => 'timeperiodId',
'contents' => '20'
],
[
'name' => 'type',
'contents' => 'break'
],
[
'name' => 'location[latitude]',
'contents' => '-89'
],
[
'name' => 'location[longitude]',
'contents' => '-180'
],
[
'name' => 'picture',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpa1wPnm', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit Time Record
requires authentication
Use this endpoint to submit the time record.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/timerec/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timeperiodId": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/submit';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timeperiodId' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Transport
Stop Check-In
requires authentication
Use this endpoint to check in a rider at a specific stop on a trip. The rider must be authenticated and cannot have an existing active check-in at the same stop. The stop must belong to the trip's route and both the trip and stop must be active.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancel Stop Check-In
requires authentication
Use this endpoint to cancel an active check-in at a specific stop. Only the rider who created the check-in can cancel it, and only active check-ins can be canceled.
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin/cancel"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin/cancel';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Yangtse
Yangtse token
requires authentication
Use this endpoint to get authorization token from yangtse
Example request:
const url = new URL(
"https://api-dev.getpass.ph/api/v1/yangtse/auth-token"
);
const headers = {
"Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/yangtse/auth-token';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
"exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 196,
"trace": [
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
"line": 97,
"function": "parseError",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 209,
"function": "Aws\\{closure}",
"class": "Aws\\WrappedHttpHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 174,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
"line": 49,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 52,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\RejectedPromise",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 163,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
"line": 189,
"function": "tick",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 251,
"function": "execute",
"class": "GuzzleHttp\\Handler\\CurlMultiHandler",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 227,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 272,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 229,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
"line": 69,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 58,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
"line": 86,
"function": "execute",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
"line": 95,
"function": "__call",
"class": "Aws\\AwsClient",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 107,
"function": "get",
"class": "Illuminate\\Cache\\DynamoDbStore",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 169,
"function": "get",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
"line": 96,
"function": "attempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 154,
"function": "tooManyAttempts",
"class": "Illuminate\\Cache\\RateLimiter",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 127,
"function": "handleRequest",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
"line": 89,
"function": "handleRequestUsingNamedLimiter",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
"line": 26,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 300,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 288,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 91,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 44,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 236,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 163,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 53,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 662,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 212,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
"line": 279,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 181,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 1049,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 318,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
"line": 169,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 196,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1183,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
},
{
"file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.