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": "elza.boyle@example.net",
"prefixName": "",
"firstName": "",
"middleName": "",
"lastName": "",
"password": "",
"hasAcceptedTerms": true,
"organizationId": 1,
"mobile_number": "lffgze",
"birthday": "1999-06-18",
"gender": "tmjdgzavkpnvkbknnpra",
"address": {
"country": "fi",
"region": "wjasdaekz",
"province": "wto",
"municity": "ikoalzpjrk",
"barangay": "zlriwpqzjuzoaoe",
"unit_street": "puxrgneitwsb"
}
};
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' => 'elza.boyle@example.net',
'prefixName' => '',
'firstName' => '',
'middleName' => '',
'lastName' => '',
'password' => '',
'hasAcceptedTerms' => true,
'organizationId' => 1.0,
'mobile_number' => 'lffgze',
'birthday' => '1999-06-18',
'gender' => 'tmjdgzavkpnvkbknnpra',
'address' => [
'country' => 'fi',
'region' => 'wjasdaekz',
'province' => 'wto',
'municity' => 'ikoalzpjrk',
'barangay' => 'zlriwpqzjuzoaoe',
'unit_street' => 'puxrgneitwsb',
],
],
]
);
$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": "pkonwcaiomakopz",
"password": ",7pjOdrtJYDIOa",
"hasAcceptedTerms": true,
"firstName": "dskvk",
"middleName": "wjlnj",
"lastName": "xqs",
"birthday": "2005-01-15",
"gender": "male",
"profilePicture": "est",
"psgcOldCode": "veniam"
};
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' => 'pkonwcaiomakopz',
'password' => ',7pjOdrtJYDIOa',
'hasAcceptedTerms' => true,
'firstName' => 'dskvk',
'middleName' => 'wjlnj',
'lastName' => 'xqs',
'birthday' => '2005-01-15',
'gender' => 'male',
'profilePicture' => 'est',
'psgcOldCode' => 'veniam',
],
]
);
$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', 'r');
body.append('password', 'WIuR-+1Ee@eiB1L');
body.append('hasAcceptedTerms', '1');
body.append('firstName', 's');
body.append('middleName', 'hr');
body.append('lastName', 'mnawzuxjwubolrbpmcpr');
body.append('birthday', '2021-06-24');
body.append('gender', 'female');
body.append('email', 'halie92@example.com');
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' => 'r'
],
[
'name' => 'password',
'contents' => 'WIuR-+1Ee@eiB1L'
],
[
'name' => 'hasAcceptedTerms',
'contents' => '1'
],
[
'name' => 'firstName',
'contents' => 's'
],
[
'name' => 'middleName',
'contents' => 'hr'
],
[
'name' => 'lastName',
'contents' => 'mnawzuxjwubolrbpmcpr'
],
[
'name' => 'birthday',
'contents' => '2021-06-24'
],
[
'name' => 'gender',
'contents' => 'female'
],
[
'name' => 'email',
'contents' => 'halie92@example.com'
],
[
'name' => 'photoId',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpqDMrAp', '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.
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', 'region');
body.append('filterValue', 'ipsa');
body.append('notifTitle', 'ckzozpgz');
body.append('notifText', 'mlzfnofppl');
body.append('notifType', 'push');
body.append('notifPicURL', 'http://swift.net/architecto-libero-quis-vel-et-illum-aut-omnis');
body.append('notifAction', 'consequatur');
body.append('notifAction2', 'fugit');
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' => 'region'
],
[
'name' => 'filterValue',
'contents' => 'ipsa'
],
[
'name' => 'notifTitle',
'contents' => 'ckzozpgz'
],
[
'name' => 'notifText',
'contents' => 'mlzfnofppl'
],
[
'name' => 'notifType',
'contents' => 'push'
],
[
'name' => 'notifPicURL',
'contents' => 'http://swift.net/architecto-libero-quis-vel-et-illum-aut-omnis'
],
[
'name' => 'notifAction',
'contents' => 'consequatur'
],
[
'name' => 'notifAction2',
'contents' => 'fugit'
],
[
'name' => 'notifPic',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpH5SlLL', '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/phpgtBdIi', 'r')
],
[
'name' => 'id_back',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/php68PirV', '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": 90
};
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' => 90,
],
]
);
$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": "quia"
};
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' => 'quia',
],
]
);
$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": 2,
"date": "2001-08-17"
};
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' => 2,
'date' => '2001-08-17',
],
]
);
$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', 'tomorrow');
body.append('timeperiodId', '1');
body.append('type', 'out');
body.append('location[latitude]', '-90');
body.append('location[longitude]', '-179');
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' => 'tomorrow'
],
[
'name' => 'timeperiodId',
'contents' => '1'
],
[
'name' => 'type',
'contents' => 'out'
],
[
'name' => 'location[latitude]',
'contents' => '-90'
],
[
'name' => 'location[longitude]',
'contents' => '-179'
],
[
'name' => 'picture',
'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpKrRltw', '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": 19
};
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' => 19,
],
]
);
$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.