MENU navbar-image

Introduction

LaraClassifier API specification and documentation.

This documentation aims to provide all the information you need to work with our API.

Important: By default the API uses an access token set in the /.env file with the variable APP_API_TOKEN, whose its value need to be added in the header of all the API requests with X-AppApiToken as key. On the other hand, the key X-AppType must not be added to the header... This key is only useful for the included web client and for API documentation.

Also, by default the default app's country will be selected if the countryCode query parameter is not filled during API calls. If a default country is not set for the app, the most populated country will be selected. Same for the language, which the default app language will be selected if the languageCode query parameter is not filled.

Base URL

https://demo.laraclassifier.local

Authenticating requests

Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Authentication

Log in

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"user@demosite.com\",
    \"password\": \"123456\",
    \"auth_field\": \"email\",
    \"phone\": \"null\",
    \"phone_country\": \"null\",
    \"captcha_key\": \"eaque\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "user@demosite.com",
    "password": "123456",
    "auth_field": "email",
    "phone": "null",
    "phone_country": "null",
    "captcha_key": "eaque"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/auth/login',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'user@demosite.com',
            'password' => '123456',
            'auth_field' => 'email',
            'phone' => 'null',
            'phone_country' => 'null',
            'captcha_key' => 'eaque',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/login

Body Parameters

email  string optional  

The user's email address or username (Required when 'auth_field' value is 'email').

password  string  

The user's password.

auth_field  string  

The user's auth field ('email' or 'phone').

phone  string optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Log out

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth/logout/17" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/logout/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/auth/logout/17',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": "You have been logged out. See you soon.",
    "result": null
}
 

Request      

GET api/auth/logout/{userId}

URL Parameters

userId  integer optional  

The ID of the user to logout.

Forgot password

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/email" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"user@demosite.com\",
    \"auth_field\": \"email\",
    \"phone\": \"null\",
    \"phone_country\": \"null\",
    \"captcha_key\": \"eos\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/email"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "user@demosite.com",
    "auth_field": "email",
    "phone": "null",
    "phone_country": "null",
    "captcha_key": "eos"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/auth/password/email',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'user@demosite.com',
            'auth_field' => 'email',
            'phone' => 'null',
            'phone_country' => 'null',
            'captcha_key' => 'eos',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/email

Body Parameters

email  string optional  

The user's email address or username (Required when 'auth_field' value is 'email').

auth_field  string  

The user's auth field ('email' or 'phone').

phone  string optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Reset password token

Reset password token verification

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"code\": \"null\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "code": "null"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/auth/password/token',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'code' => 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/token

Body Parameters

code  string  

Verification code (received by SMS).

Reset password

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/reset" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"john.doe@domain.tld\",
    \"token\": \"quidem\",
    \"password\": \"js!X07$z61hLA\",
    \"phone_country\": \"null\",
    \"auth_field\": \"email\",
    \"phone\": \"null\",
    \"password_confirmation\": \"js!X07$z61hLA\",
    \"captcha_key\": \"ut\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "john.doe@domain.tld",
    "token": "quidem",
    "password": "js!X07$z61hLA",
    "phone_country": "null",
    "auth_field": "email",
    "phone": "null",
    "password_confirmation": "js!X07$z61hLA",
    "captcha_key": "ut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/auth/password/reset',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'john.doe@domain.tld',
            'token' => 'quidem',
            'password' => 'js!X07$z61hLA',
            'phone_country' => 'null',
            'auth_field' => 'email',
            'phone' => 'null',
            'password_confirmation' => 'js!X07$z61hLA',
            'captcha_key' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/reset

Body Parameters

email  string optional  

The user's email address or username (Required when 'auth_field' value is 'email').

token  string  

password  string  

The user's password.

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

auth_field  string  

The user's auth field ('email' or 'phone').

phone  string optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

password_confirmation  string  

The confirmation of the user's password.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/sed/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/sed/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/password/sed/verify/resend/email',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Entity ID not found.",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/password/{id}/verify/resend/email

URL Parameters

id  string  

The ID of the password.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/nesciunt/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/nesciunt/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/password/nesciunt/verify/resend/sms',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Entity ID not found.",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/password/{id}/verify/resend/sms

URL Parameters

id  string  

The ID of the password.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/verify/email/null?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/verify/email/null"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/password/verify/email/null',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address verification has failed.",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/password/verify/{field}/{token?}

URL Parameters

field  string  

The field to verify.

token  string optional  

The verification token.

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

Captcha

Get CAPTCHA

Calling this endpoint is mandatory if the captcha is enabled in the Admin panel. Return a JSON data with an 'img' item that contains the captcha image to show and a 'key' item that contains the generated key to send for validation.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/captcha" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/captcha"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/captcha',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "sensitive": false,
    "key": "eyJpdiI6IkVXc3dPczVySVhhZlRFdVBQMFVETlE9PSIsInZhbHVlIjoiZDBPTmphZ3pEOGVCWk9XQ2JBMFVvSFJlajBETEpOQlpSSzR2c3dySHJvREhmc1RvWUJLVjZlNXNpTmRGZDgyZmFSODZrWUdQNE9DRzZ3OXA5SFlRYkdjZzZWL0ZsUjgrbTA0K21OTWRzc3M9IiwibWFjIjoiNTU3NjJmY2I2YjMyNWQ3MTRhYWJkZjZiZDNlODAzNzYzYWRmOGM1OGRhZWFhNTI4YzY1ODE3N2VjMTQzODE5MiIsInRhZyI6IiJ9",
    "img": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAyCAYAAAD1JPH3AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nJWdeZxlVXXvv/vcc++te+vW3FXd1UP1QEPT0MwNojJDqwwqIomIE2ryzPBEjZpnRonvk0CC+YRo3ot58SmRQYKIxoCoQBgUGWQSkJmururuGrrm6c737PfHOXs651Tr29B17zlnD2ut/dtrr7X23ueKfaMHpcQkKSUCAYAQ4R/nGoF0SyDNV4QQ9h1VUpcXYSVWe1FB9VdK1ZAuqcsIEAh9LZEgTWt2W1jlzGdYPuTJolVq8vXfeB2/SRJC4ImQvuQ/w5FhR9jkIqVMl4eVKcwj9ffAuv5NkiovpSofWPfMfZcvm3aXFlA0u3KIMhDHlmHMIEf3j5KN1T+BlNgAs8SDEC5+hBD4jWZTte00GgeBEIcXfogLiSc8h1jUcFCdKCxAyiSYYng2gEBY16aMptcVqc4nVRm7vvigsOiPp18HaNPX4TdPCIRnaPb0d5MveY0Gkg2mNKDKCCRSSmQgnesETfrCtBdY4A2kJAgMoIMgiNpI4kAlz4sPLn1lmrQ6SMk0xH4S4MKSiSorLBkpmnQLMbo039G1HwTSeaAAJSPNEGpVEEiQQj+zsWwTGsS1pgKVxEKqaSveaapd6070N6LHfqrKC2cQR5o8mmmia6kGVMSfkNLR0DEqFPUcLgmieqPOEkI41wiQumE0/bo9S66HaSF5O6YIlKaMGrSqU4KRVlcZMMsg+ockCJR2jvJbeADTdRa+EgNQy16Y547CWhXQIIQBakLpaZlZHSVcba+ufadQJEBzJfXf0JyQSGmunQYUgUK4RGN1i5TRgHCJlbjESbu01dmKaQU0azw5SUiJVK2m4CGqzOI7OW3GKVn1qe7wsD4vADz0fJgwz6RAiFBOCtVGi1lASmNM57HyOtN+BGwtMwOYiEq7IlyBazQfxuRIJoHV30Imn4mwrXDwiwRPGh/SnQ0UltJmToNHkcCOT0zgGgTWCDHERLdX1azJTwVmLWKZLJMAVKTdbLpCwDhNpk5jKunBqACnyliThMaUrcWi/HPjSwD0behMqT2ZZKI+YoNGTamKLtVhUudLA7MtO3Vbxv9zGnW/y4hpEU0NbjvmP1dBrTbA4zw7nZmY14yCthRLAm+YUs7MHjMJY20YZJlWBeBns1mn6jTbyZ4CREz4ceZsh8Bw59qwOFmkkz3UrXbboBxTISCoNsgUsol27aTb8ryoYqH+dxwOgKXZClP75pjcO8fUyDxT++aZGp2nWWux67ytXPrHZybqT0uODRjR+ujszxmt7OPI0g5O6ztNM6SdH8VfZNMruSo6JeFsY2XEE0YzS4zGPvxsYrcXgiCQEk96yEA6drUCti1W16fxom8x+9nCrPK71ODTKW5yoJSe0HLQ5SPMKZM4Xl7LyFKcAH6xWHAbsTNo7xMNhIh8R4PERJdy13AqAFoBzXKNVrlGq1KnsGXAYdJuKag12fd336dVrhFU6/jd7Rz1V1dgTKH0to44rU9/3/uL2QjQgrmJJV54cC/7nh3n4CtTlBdq6bQCU/sWaMvnYppH8L1LAt5zl2duWhnUYPniC3/OQ1MP6rqu2voxPn7E79qiMBKzbU5MfWlzj23zx2fDeDK9Z2Y8ba4oRRIYLb9qfTagFZM2WBPNuzZK3DSNF7HUVzICZBeND9wUE8avVqsJQGtACVOxE2KSLpH2BGd7uDbFtoYe+dIdBCsGSOs/fTG5dd0YESkKJPWJeRozS4bgnhK1Wp1fB+gXfzaup/Rtp/Y6zz7UeX1qmXiaGp2nWqkhMo7IufhOyfcuCWeJi7/XdAEtBAcrBxwwA9w+ehsfHrrKiR7pGrV5F8RkKhPWlwZfxHtcm8aRI1w0ak2sNHsQmOulyjwvjD6B7+VY0znIhr6tZDzfscG9WEguYVJgmQsWEqWEB575JU++/Co7N2/i6M1DbB1cF4U5LVqFq7EdM8yZBkhN/kql6mQKAun4EE74Lpz/oxHewm+vkGmvkMnXwZNUJ3qRlYI7wh0tH9aRPWIttedGdZaFX41S7Mxpws3gkdTHZ90O6ilSrlT1dVKbmPaEFwL6/pue5zt//iArc2G5mxY/nxBEGsiDZsDY3mn6hpJ29HnfDgfk3e8pcf63l7XAPE8QNIJEfoB6vRELTxmZKvvW0XwYUPzjbZfz6SvusMyDUD6y2QhjtRk/ctDigHZl40Q4ZBiqU6C+89Gvc3B2r86e89u45KSPsrFvu67I84TBlWUCOGFDZVbaWh+JLwTP7R3mub3DAOSzWd62+2QuPv1UB8RJk8PiypJP3GkUCHw3lqgchYiwNOXntch2L5LtXEZk3Az5vgXKB9piNp3E9oQFkNs+4AC6/sYkbacf4fZCRGhzbsVpI9Pb7gjvsIsKUtCoNrnzSz/VYIZ08K4G8snheXo2KkA7RhcCOPfWFe5/f4lzb1kObfwA+nPrOK3rdJ5YeEzX9YGNH9GaNYIvQqrOU/ZwxHesPwA++b7vcMNtl/Pf33Ujmf2vkhkbxlucRTTrYb5snqDUTWPtEI0N25HFUkRjTL9LK2xnfc6XZx0wA9SbVUZnX2V937Yo7AqB8qotIDm2NOZ5fAbp6Sg59dcaDUYmJ0OaRCgPok81zAPMrBVv11wbWSUBrYxwJ2YcdkG2a4lc7yLCSwdRpq2ByLSQzQx2uM1iE4Egt32dY3s2RqaRzRbCz2gClZ5txQHd3R6LlMSIsJ2oQPLUf7zK4uQK8dTZX2Tn2ZtZd1Qf/Zu7+Ez/b/PcT97g/q89pfPctPh5bvqiKfPM/aOJekByzs3LPPCBsLPOu7UMSL5wxF/w6PwjzDSmObbjOI7u2EkgpasxLfmEpMuUyE30LZB8+vj/wQ0/uAqAz2fPdeoQjRqZuUkyc5PkX3mK+tAOqjtPQ/o5MrMTiHqVoGcAmS/GzI4QdK+MPZ1CGfS2rwv7JO4a2UBaRadol2AVQAOUa/WU8rEZKhGAiLdjNLaPVUBIZbNExrYI9auXbVBcP0sm30in3E5eExl4migFTKW0pQgQ+Sz+YA/NsbmwTCugMTJNdutAREc0wJEJQHs97RwO0fbgAXjxgX0JEnddsJXzP3ESGT9jCT1gTcy0+FDn9WzbPcilf3omIDnp/KFEXc/cNwLA2TcvIYD/urKDc29dQQiPM3rORAgP4YnQPtYSEZZ5YCh2okf6Q0KjQf7xe8hMj2kgX994IAFqlYQMyI+8hD91kPKpbyc//ALZ8XCabxU7WDz7t7TopIRmq8mrY8+k1jXQOYSUTtxJ0+p4mtYznWR0L3reVSyR8Txa1urMSrWa8BOcKwlIY0q9sv8Aw+MTHLVxA1sH18X8Qomfy2Uxwy1ugwky7Stk10yvqpUVP0GlQGulnSztZPPEasHYtlGko3DUIEsK0EAwMkP+6I0gzeQggcWFitNWYW03mdzhw3aqneWZCouHys79jv4i7/jD0/B8z9hgUR2DR/Ql6pkeXSSb9QF44aGDiee7zt6QuHfDlaHd/4476k7IU/Ov7Xx7j4eapbWBGt5rNck+8gO8+Smnjc8OXMH1h27jDy/6V2S+gKhV8BamyYwN4x98AyEDMuVFSo/+p0ucn8PP+nrw3P6zrzF86GXcHgtTzs/T3x0pGeW4xRY/zHdTLh65tfP2dpSYWljU95crFfL5rOW3CR32iyZZa5KS3PbAQ0zMhrjJZ7McuXE9b9l1DKfv3AEI/DV9bgTABnTTn6fWNrWqR4n0yNYHyNX7AR/aQBS8GHduETXW2049iqUHX9T3WyMz9PX1OEUkMDFvAJlpb6NvsD9mFa6eKtPNxL1tJ6ynp7fbiXtCRHIXdK/rYH7CRFUWD63Qli2QL2bdBqOi+581edXtjSd2hBdvDT/Gnl9xnjscCiOTtMHZfOQeZAzM3u5zyOzczRf4ENd942K+8NG7gG5YNwg7jkMuLxA8di+MjyDqVaesv24jXZ0lJDC/NM3woZcSbRqZSH783M1sXLOVU486h2K+5CgbbC0dl4JA48Dmam1fbwzQVfp6u/E8zy6Ncg5tkdz988c1mCG0wV8YHuGyc86irzdURv7k5KGoUWXgh5+ZXIPCpqlVlz2bK23UJnshEMCs6ef4Grxwpyu9uahdIIo5ZDl0aqoHZxgf3o9XzGuwtVaqyIYBpeguMDU1bUI6JIVmwoOwuLTIvV99hT2f3GEJoc7M7EwCWIrcvk0lB9AArz47zPodSe1tJ9tDf/6BEa2J772infXHtSfyv/LIuJEFRinboPamx8i/8YJTrnb8mTTWHwnz80gJn7j0Fq775iX8t0tvdhs4+QLyrz5N22uuKbHS1kV9dh4pJa+N/eqwPDVadV4cfYoXR5/i0MwkZ+18t6Oh4wsl2nT1LAxYFpSUklI+j1tE8vrwCJ3t7U5o10Q5QvOkUqtxy4/vS9C4a8tmNnZ3MTk5CYBfa7h2sdro0jU0i/AS5cPKp0pUZ0pIAmcIScKwjnJubFMDomnE2q3lb+2n8auDunD5tQmyx2zQZkljygWW112k3mgmpr2EeRMJJdeZY8/HdzignhtbotFo6TyG5zD1bOyAX4w77U7snaP/iO6EHOJj3Q43iaj+825Z4oYPhCbIBd9e0TLZ8dZBp+zLPx2znLQwFV78hZOnsW4L1Y1HIiP6Vf6PXXwj/+f7HwTgYxffqMs3tx5PdvQVMjUzy9U7emk0W8ggoNZYfVEpnlpBi3qj4eymTKwWRzKx5Rpfr+hqTw7umaVl8rmcIzciOcogQAI/eOwJlqvubJPxPN575luoRTtGBeBLK3gd7j+Fwpoyfr6VylhlpkRlpkNrR8dvlxIp1ZJnxGAcbdZ1ZtuAATTQHJ7G3xnZpEIQxBxC0eNGOKIm3WvdEOTbc7R15NjzSQPq2dFFAttOt2w0CfQOdSV4nt63gL0C6wTvYjx51vPp+iGeWHyUib8dZ6I2Du//B87/9gpIeP7BA04s+ugz1yfaHf38NQ5f1R2nakdO0a7+ffSiG0EIvnH3R7jqohtDOhs1B8wy49No747CdbB1YBenbruAp4YfIJDp/a1Sb2kwlIFQM7nrjKm/KtwW5rHCkVGONEAvlSvI3igOIdw6Agkzi4s8+OzziXLnnng8fV1dRh6IcPuoATRIWhTXJMNcAPWlPOVDHa43bjMUzZv2dkbbypICPEWthMyWfqf+5r4pE4iX0Jp3HUKv245BhwZWkGJ3CiQyAkvvpk7GXpx2QD0/uUzXQHtyyRno2dSRqG9m/4LRnLHmIr8y/C5DHiMFw3htjBvHvq7zVr74e/D+rwFh/Dp0gCMz5aGDJmyHJP/Gcwz9zsVuY9dfw7P3jzoysoElgI9ceCM3/vAqPnLhjWRitnejc43pOwkZ4XPilrP4xd77Ezx7IkNbtki5vkQ+W2Sob2dU1todGGlfe452+lvauAjzdZeSobuF5ZVwQU9YgyICt5SS7z78CM2WO+A6igXevvsUZ0YTgI8MjI6VkmJfGS+TBIlsCZbHSkBAOBZcYlG62hmS9vZFEW20MZv1M8Us3rougomFMPdiFTm3EobmkMhFN0LhdRdABpbIVIPJFG0Bom9TibEXpwE0qC/cdxpdA0W07awGItAz2E4m69GyVvumRxassFtcMMmWwyElWJtd5zwZr4+F4T0heODKEufeuhyOADv8FXVQdmbM0dArO0+jvmUXJ5znhg6f/IlZDImWMfjIhd/g3+65ij846monb7OrL5SflDrv1OKBVBmu6VjPu0/+BNX6Cl4mQ85vQ0SLHDZewgUiSxQqGqIoktrbAQm9pWKireVKJZJYqBFCsyNckHtpdD/PD+9LlHnX6W8iH0VrbL/J7+7ssCgQ+P1zicIAslaka51E5BcRmSZIgWz5BJUCQbkEQSaqVGhGVL22A+Y4QlIij97AUgRogOzEMqXNawGoV5vYFn7Xpn78zgKWDkgNgdp29Pqj+nn+x0Ygez65gz/66k3c136N0a7SOMUAfRs7OTQ8r6/r5SZUoaOv6JoYInGJcgwRgg6GyIosDRlysdhcwMtJCpk2Lr6zwd2Xlbj4e03HhNFOecX1H/yBDWQKeV75+YSmV0rYeYZriwO8+NMxfv+93+Z/f/f9gFmE8QY20F4sRCZhqKkXx6YT5QEGezfT2dlBJx1WH1phO62ZY4pNOF2hZxz1Pd/mOoUAjaBFV1eHkWFkSwdS8r1HHk3k3za4jj2nnaxUuCIslFOh0KYJkZkqLT8Z6gLwiitAzKaljlcoQ88s3ko/orLGYtiaB60vxqGLnu/a7ITvmiPTFM45NsyxZJwAkc1Q6u9JCbfF21GXoWQ3HOmaNQCfuuPtXHD5NTyy8zrLjDCQXrut1wE0wMLBMv0ben8zQKtnQrC+sIGR8j5dz3RwiO3FIxEILrsb7rw4jHFfdrfxwCUSKsvYKdfdB/mcZT+HX4afnHV8IClJbMb6Kg8x+vlryK7bSLatTYNZSpheGkvIB2BT/zaKhULifizIEUuGDptGO3+x0EaxLU+5ahzSaqPhtKVAfdcjjzE+E9vLI+Djl7yDQqEQd18A8Gdn50MBCsj3LtOWyt6vSUISlA7RYIHKWJ/NWxLQnrU5VILsyiLasshqqMVWXh9ndi4EU33OdKrXXWR2bkHbpxA5n6surISCzXZ7Ccdt4o0ZAObmFzQdNqA7B5PT4r6XxunbkbSv49tl9flHET4b8Ncywj79/LXZ1xmQg1okF9wWevN3XlzggtvKmp/OGF+L5TI0I5/BdrZUJCGiRUrJ0/cO460s0PvI93X5oeuvgeuv0ddP/mQvUkoOTA+nyq/gdTMzO2vxaPhTadV9NDGl5u75kPS0lxxAz8wvMjM7p9sRAparVW5/4OFE1acffTS9xXZm5+Y1v3byy9U6qkPy2d88jJOWsqUazTWzLB4ouUMnvgNOpWjq8zb30XplIry1UmPlwCyip6hj1AB0FqhWa6BNltBeWF2o4AkPKQM61hRYmjIO5tzYMrd1fIZLxq/ljp7PJZybzvVJT3xyeI5qNbn0r0ws51qYTfz9/lon//6VA1TbGw7ohRCcddMS910RDpgz/m0B6ecQVlitUa4QkI3istI4hBivUB0SACjMTDrtvvK3X+efxm/iyj3/ipSS3W/bluDlg5+6FAgdwqLfQ6VSt2zi8IvnWdsYnDWAmAywgwSmDSklXe1FDs7M6HtL5TKVSt2YGwLueOgRqnWr/wlXBt9x6m4q1bpWWAlA27aP35ZubqgUtASyJfD8YNUYdVtPlZWpNhoVX9drOw3CciqUh+pt7deABmjtn3WWtwFET7sOnSm3Mu3kjGlTEETC7NnU6QBaBpK5g8vcvvlzXD73ZW7v/qwj9O4NSU08t39JR1RE4mmieb2ZZyDn2rgT9TG3g5EoUb7138Joys8+0s0lf9BBzgJ0ZnGGZqHDCoVJrRBMZUYeuUXXNq539HHlrn/l1nt/l/ed/y/89AcvMTE/wn889TWd5+Z/NBr9Wzd8F4B7v/NLnG2p2uRxlYkCuVHgZj0inice6VAblJTMxmdmePyll4mnPSefRKlQsMzEpNnjS0LvXUjIZNM9+ZWpPOWZAkE9ExJKQPuaCqXBSmIlUQgo9FVoHGjXXNixaiHNVlIlEG+LuwrXOjCLt96NB4uuNqQMUBsLJcarj0NMWLckAb2bOhh92tVYM6ML9G3u5PbuP+K35/+ef+/6jKar2JMj356ltmI08tzBJWQrCDcapUrJTmbL7NqYhp6ojyODADtGpeQTnh6BN39zjrs+eiWXffArulzboRGqA0NW+FA630PGhR502cUZ7FTr6CWQkivO/xduu/8TAOzc/mEnj9LQ29eexFu3vxuAPb91gpPn/jt+GXEYH0z2h+ojid5pppKQdJfcGXClWkUSRKUE9zzxi4SM+7s6Oeu4YwF7kxcOFWHYTu03zayudZcn88imQCj1GkiWD7Uh/IDSQNJMyZcaYXjIbtdi1E0SUcwi+juQ0cpgcHAOWXYXGkR3GGYjAWB1L16tMrYlPRuTJsTs6KKm8d+7Ps37Fv6B27o+pZ/3bOpg4mXjkAQtyfz4Ij0J7R33tIU2X4QQrM0lAQ0BUh1clfYAMebDmf/4Gnd+Kgy7XfbBr9B2aD+ZlQWahY4IzKpICGyjWCS0WuRW5u1aqXcYR/F95/0zgZR854E/AHoSsulrH0TJ9N7b3aXz8y8/IZH/3u88Qwy1aMclFosGSXcsdFeuVQlxKBidOsSLo/sTbbzrzW8i49l1mv61Ee339kRLul4ALCYqAujq7EFIz5pPovhiox04kMjvtwX09Jql4njYTmtPa+5Y2rmB5alomlmq0rbUwLagujevxe8puXsJcPmxk4jakkjkMR7wS+f50mSFrs5O1Aj/Uddf8o7RL/Gjob8EYN0RvQ6gAWqzLbqPiZ9esaM29imUUNt0UMIXPk0ZmnMLzXnyxTy5TE7nsX0oPY2XSrzrM3fiTx3gzpuv5rIPfoW+lx6l/NZ3IjNZLTflIIayDevIzE0irLh5UOqmsyeK0CD1wdNc1/H0LDzHnHRBvXX9kfR2d7vsRemZ+/dpbhWtp1yw1cnz9H3DOo9Nn0qbK+6CWbMVUCgWKObb+Nb9DxBPx2/bwhkn7ELNzHpOS7Oh26OlSEmLVZYOKBbbEXiJlTUJBCmABii2FxDOQnCYVtvs5B2/leWHjd3UeP2Q9VDQMbgGkfGiOmxPO16TBSzCpdMNRxTIZDO0Gma1aXpkgYIOFYWVPLzjWs565U94eMe1bDhygGd53al5/sAKhUIyAuLyZ8J2kZpmbds6DlYORC1JpuUU2/JHWGVsXiyGTjkHed+/c9kHv8KdN4fa+lLvNlpv2oPUGtfVjGJhmsyvHsNJa9bRpsKzmJDd/Mo0NdlDj5izQC3YvPYIfD+PYsNpx4nbhR8v/dw153a+xZ2VTJ5Q+2xcO5B4Xg8k1eWVxCJKJuPx8XdeRLG9Pam5UuJ2/sg+s1K0oZdUs+Pgwf0ErUwEEvO+Mc9vMbgmmR9gdPQg4fsgXATrV0lpzRr+DTwJOR/qoSarDFtCKrVxYCzaMGQDBswJG50UoMONUDIIVxa71heZHTGLFcszFV755RuU+gsOkG4tfZIDB8eQxaSDPPrSOAcPunHbOH9pZwbXiH4OWgP/xYkXaS+VNDjUwdPke+okhe2n0PvyY9qevvOrV/Oe+X+i3LeBcu96mvlwUGbLS7TPHqRtbiJh1M2LNpbGJvVScniWUFJrhJpyzgJ1xvMZG5uxNIV7iEvvpINoSonZ0sBPbgvNFFvxpYH8hD1mJfO1N0Z48rXXEwrqjGOOobFSYXTF3otu+jgZ5dBGu6BRyZBrT25S8Ystaovm2L4CQLY9PSrSqgv0K7DsBnVZ4YBIxcHFUC9SaWYLqKKr4B5fsjZQJM0NM2BCcytU1X1DnQ6gAV792UFOvvTIiAJTZ3WpztPffS1R8+yBZeKHqOzzkon2IztvILcOrFX8yfp4OBvKkJXA4sUyNZHAysBmgoxP30uP4gWtUFvfFJog7dNJWxOgXuwkVzbmo/QEkpa214Modp3xsrSC0PFVoEbC43vvZlPvUfQU19GWLSKFramj3Xaq/2KzizPALYfwR7c+acQCXHf7d3no+9fqrL9371fY/Y7POHx0FArsOemE1P06GjsyZkNLaTbk15bTAd2+pkF1IUdow4RRDimhc7CeyAvQqGS0Tyjt7aMSAs8sRRg6ozxDfWCbGip1F0F6RGco1fg0DKUlKy8SBo7s5rWfuidOfvmfe8mXcmx7y3o8T7A4ucLo05O8/F/7qS0nY87LMxVqlQbZNt+5b2soFVdWrquQMOC7ezomG5NOCFD7NmqRxBmsknLvBmq7L6J733O0HxpxTBA7EtLK5pndeDRLA1vY+vh/aBB2jO9luWc9QV4te4exgjWl9Uwujujy2uw4dC+vTj7Jxp4dnL3jfY6f4mFvHzVKQPWKdnYx/auUmCUkutrbHQ3d39XFfXf8z4TM/+L970+xwyMFGFOMSIEvZaAzL03l6FibBGmxp0FjfYWliTxSeohMi95NlVTwA6zM+qaTLc0aAtJzX2hoJbF1DfKkIZgvw7AVR+1sI5CtMOQnFJjV4kIKoKMGAyKTRMD649fg+R5B03qbZSB5/JaXePyW1U9tOEnC3IElZ290IJJ8xAMxA7FNSpP1idCpVjODVSzBTsRzM19kesfpzGw9keLMQfb80Q/I1Mrc+b+u5rzP3U2t1Mvymk1I4SGBctda2hdCsy1fXmDo6R8xduzZVEu9elFm54Y3O4BWSWnrxeqMox0FEAjTr/G96CFTaltYBHorhxqsAkF3qZ0RS3dNLSw4AN/Uv4ar3/1O3va+ExP03XNreJA5IEiYaL6QZkdcsyIoz2Uo9iSB2rW+RudgjaAp8Hy5qnPXqgvKsz5KResIhzbgLQLivVfw8d56BPKJfUgL0KKroPSxnqZtJhLJ4TG0oduKPtvPGOTVB5PnAv9/0tyBJfq3mRi5UDORrVbVoJMSvGQs+lBjQmsdIWX4yjII7X1n9S1qQ6KZDjJZlge2sNS/BYnk+H86wDQnoN9lEoTx3KktJ5J/6WH8emgnN/NFasVuFJqFlGzuPZrjNpzJ8wd/muRT9tBTfQ0hXSNLyMP0X9Q/yieQUTuWWLSC60nZF63bAN59+ptAwo9uNafwFXgvvPIUJ/89tzypv/tr+nudMKpc6CTomMDzk6AWAjLZVab4KDVn++nrsTa1xIB/2CM8UVoov44d3e7evJZsnwkj2W7Kr9vLEdreYf7zf+dUDr2ywPz4cmoZO2XbMuw4c4gX7h127lem6vT2WoAW7ksk7bCdet5JCW+/F75jAphpTlPqLJIRGSu8uAovlrYPozZJk8TYkMICWReLfe+h+PrT5MaHqe3YTXdv9HYq7czB+T2XsWPoBJ4Zfoj9069Sb9aiqjyO3/kx7vnFZwH40IXf1Pxo0tIAbeVZbQLDllcAAAw9SURBVA85Atav7Yfknn0ATj92JycefWTC6VPfnvjxXsMucJq1jO9nMp5tUxPILPXJteQGDuFlD78U7rAioTnbB40Sni8dJhw/QRg4SpnkFSCYi+00W9OBlwlDgHaEI6zD0WVYKjJsKzCOS6GU44prz+eeGx5j5Fk31KRSWynHznM2c9p7j6bVkglAz+xfxMtkdGuJ0JE94KLvGZGhPz/AZC3ar4LkUGOSjYWNWiaKFxcjMZMs4sfpYmthJsSzJZxCgcpxb6Wy6y0gBJmIYPsggZSCof7tDPVvRwLLlXkq9RVKbV0Ucu2cfMRZANx411VcdcmNqSFT14NIAXScHQEDPcmTQRDu1/jtc88ik/G0QkokWwEDT92n+kjgT06aUw1CoIPuYiJHz0YoDTRXNS9Uqq14zI3mqC1X8by6XsKNaDdJWNORzSDulB3YZwkLWabm5/WGJPdTum+ntAAtBFHYzlCi+DjrD49lbv9mxl+eo7JQw/MExZ48vZs76NvSged5lJtlEKGmblTNbHVoeI6pqWndWvw9blpDWyE54QnWeP1MYvarvDr9CoViux54YR3SQYkNVMWDeaN90odIhrGMencHjTlVpMCtwBdiIMtitcyiFZq58LTrufGuq7j49C8bftPMI4tg98SKi/6F+QXS0rkn7KJWLnOoUsGz8Jg2MDxPRYhMH/uNlmWXiuhdYhJowuTeHNMHsnT0tSh0tci2BXiZ0Cxt1gW1ZY/lWZ/aktLykownkTLQ2tfuDEWEupUYfRKoNPDqZmaQXQWaLaV1pYkKRNgN4pxKCF8oDiIQ+miPoSLU3p0bSnRt6IwGktGMQRD+Uy9X71pfYnqvEX59pcnSdJVid7TwkLbbDol+D7QA4UF/Zi32HDtRm2BXLpw91Al+9RZ9p9di9dq/uGD60kz1SY2mnpn9Jfq9dhJLU0ervxEG0hTSnpP/jrsf+xxv3/1lh5Z4svlRNNhk1ZsN/vPxpxLlejtKnL4jnBmFkATCI2glTY5QvhBIT7/7TiVfqpCDVL6pFVeV0Kp7zI9nWBgn9GCF0ICNCy1qCokxY+IWgZTmZxtSZxMp4dQt0JaFvI/sbjdTuIwqUXNNYopWlahuiMKMxurQoT9llrihJZuO8LN7owtogPmDyxS68ponR5vigiAQ4Enoj4XuDjUmE20bBZ1idMboUnzZCyDh89WnU/WrBoE6yGwNCnW4GeHKzKFEwNtO+Xt+/ORnedspX3ZwAnBgepqs7zPY22P4sduXIZi//eDDTC8mt1lceMpuMl7G4kGgN245f9Q9QVxcvroym7BdYWrGNBAMpaljR5rR7sjC6nglqFQnqJBD7t6i60pbDXKMt5Q6pNWKOnNmd7uZxDxr6o3RG312rU8e6pw7sMy6nb0WLUYYaqyYER1+7c+4y72HGhOxKRls2zbJkdky67LuaqhV4/JWXWF90X+6Ly2NH+9fYYpKJHtO/jI/eepzAJx/0t/pZz988knGZmY4ZmiIU47czqb+frJeBpA0g4DXx8a595lnUsF84rZtHLVxg0W/6T8tEUs20fyn+08R6zu74qQA5zBouIiijH2pNLiloRNxCi2QuOZQ5odlLyRkr6CoNLLpSEOSsFADaYdX9dKNgPiuP/c9baqNJC1KSXRvSO7dWBhbBnvni7SnaKEmvOh7qGUG/BigmxOorbv6N2ccFWFGiN6VJ9R9qbWz3b3OcHXFH9WjNHNg1Kc0wA6VV9S/jjCScrngpL9FSsn9z/wx5514Ha+PjXNgOvQtXhgZ4YWRETwh6CgUyHgeS5UKjVb6usXmgX4uOvWUkC5twimsmQFrSyc6dWj6L5K9v33bkGZc2IJIScrgTwulqOSthlVd3hJOCqCJ2jAZhKbNVHTYSnRrau9CGgHaeVkldKjShv4G9+NuoSxP1dm6xUQo4iuF8eYEgkHZB1ZgZUkuMrRpMMmuYiv66/56GC69llLRrK0me0fLxutxbWbX0YrX49Kyfdst/MudH2Bi8aJE3kBKFsrlxH07nbh9G1df/m7y2ZwhwG4nxfF0aInR7tetYy6p0zsmtyUTR5h28iINukqcw3jbaSTqIiJ+wybDQoCdJ06uspFXr8MxP+LVRNm9nGDLSesodufp39LNmqEu+rd00ag33GqtZqwho51tEHiYWHQ1qFKurpD1sm6UIyaOuEUcdxrtErZJEudFbxWIKkmC2hg2Us0AaSJJUSYfveRGvnnXVTQG387w+ESyYErK+T6XnvFmLnzTboSERr2OPXZXk4lDjyBBp7jvwUelUoSeEM4PHVpc6ApUaM/R0ValXsbTXrQuZFWVeGN9KqFmv4ANDsVocmElBbQirMfmJ77g4QnjHKUODCGsV5slnwuIXpVrZGHvhUagf3izKZt8auJ3nfJfXfd1Ml7G8GuZau4caHYt2j+OqdVClNnzUvpPUSqMRtM/Q2GZGhrQQujfXUlL6qWKRm5GOT343J8BsFx9D8OTk8wtJ19Y1NVe5NhNm3jz0TsoFdqMw24BWe2HEZ4giMyUNH2jwrK22eXr18xICIQgiOkEx+KMbFe9iUZVbUlVShG9AjWuW6waNZBWyYISfooGAuz3i7kmhdRqTQIeFp2x8Jr6FpIptXXjEpWoJZE8K6ctLc191GH76vuccllyIHwCCV6UO1hVJvo8tPUG/XC4K00romeB7o+0GkK52+3Eox0goh9PNSVtDl0H1h18Zx/31wgEDz7/p1z9zmup1GvMLi1TazTJeB5d7QU6i8XEwouE6O39aB9HAJ4UpEUygPDNWOotTqrbBfh6KVWEeIgHqoXuKlUJZmSniT6qzp7KbJF4lhlwGDxrgRlH0qrQ2s/o6CNpPgWCQLh06CncslicgRVX9tI8N4CP0xmfFt2BrJ78eNl9T/Om7GbU1KhcsMQZQasWbQykmAmhSEJ7e5UJyzEvTITDEpmWj3vfDNUwWfOdM8w1bAScc/y1PPDcn3D2cX/DYG+vI4dASlcJqAESydbun0BKM4CdWiKClWLUlRDutjM14kYNnAOOqsVo+2hsurObjIPdlm+gxx+oCEq8Ak/Zv0h0nFznFI6yDWJCcBu29mUbphQb0dZWawRGGkLVo6ILevNy2gh0Rq8ZNBJJUzYYae7l3vLdvNp40Sl2bO4EDTLj/0gHeHHFYr9YUwFfxrI6g8v+KtTEZlYKFRjcE+TpNrS61O+9l9Jd1FJ1E85aZx/3Nzz0/J9y5q6/tvKEz1WvuyFKW2PYJqWtskyD4QyuNnMZmfhtWV/NNJH9tIrJoWwwVFgnroojhjOefhkKKTXZ7+WQMv1UrtrvEWhNbBk+wrmKVsZS2ops5MDix7WhLbNmFawKIrs0rQnFr+e5IBKCG2auY6Sxlybpe2FKXgfndu6JYrRGJjL+i08uRxG/0Q1pulHZocKLrxRKp3TIrjA/em9r+OhTvYE2ToQ2pdTbNiUEaSFTYez9C066jvue+QIXnHRtnJz0a8dXE9GqZVwhSStPykrh+kFra6MQzoiIRWz19O+E7eKA9qzn7mAzJGuzOzm1Wg05z12erUGxKhRxjmDF6QibEaYzV0lmN52aJdwTKqoOu+nskk+zkQ7mrMjyx9v+jKGODcYy/g08et12WlxWqk4+TJRKPVcaOarA1cbSLJ9Lw6/OHFai60t3lIXOI6Xkw4Pf4Fs//BgAH77o/+pcTp0JnBm5yJi2sUskdikKgV8uV51KUl9Pa6FJiJgQrKkGorcV2UJL1GUdtl1lL4CjseIa2qIVmxkXZagzfRrQTgNhjTqGbGkoK4uux7U/4z6BMjBMir/6VaXB3AZ+f/BqtmW2Uy3XtIKw61ttcCl6Vts+KgCczVjp5cPuCoxvYNURRjnCE0xxP0dr6NhPIyeVrEBNwmovx+XnhC+z+dYPP857z/lnK8as/iQVp9LSq+0XEcIe4IYOfzz6SQqj4s0qoI4J6koEemHF7mQLvGoKlmnaFRCep+OH6aCXEUiidhxe3dcEAKlhKjfsE+g64uaTBqvj5dtCE84vEqQle0aSUZlcM49PeEyr11vDluw2js+dxDHZ42EJDi2r3XrCMuVYpR0Z49fS0EqZSMOPeuN9XCKKn4QNbYNXSjzPizCQMr2SHrazQ9O2yRHvmzN2/hXfffD3OXPnl8JZWkYVOaFdoeuww3ZKvrZMlAa3cfT/AKoTMY/Xg+fqAAAAAElFTkSuQmCC",
    "isSuccessful": true,
    "status": 200
}
 

Request      

GET api/captcha

Categories

List categories

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories?parentId=0&nestedIncluded=0&embed=null&sort=-lft&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories"
);

const params = {
    "parentId": "0",
    "nestedIncluded": "0",
    "embed": "null",
    "sort": "-lft",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentId'=> '0',
            'nestedIncluded'=> '0',
            'embed'=> 'null',
            'sort'=> '-lft',
            'perPage'=> '2',
            'page'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "parent_id": null,
                "name": "Automobiles",
                "slug": "automobiles",
                "description": "",
                "hide_description": null,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "picture": "app/categories/blue/car.png",
                "icon_class": "fas fa-car",
                "active": 1,
                "lft": 1,
                "rgt": 10,
                "depth": 0,
                "type": "classified",
                "is_for_permanent": 0,
                "parentClosure": null,
                "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-car.png"
            },
            {
                "id": 9,
                "parent_id": null,
                "name": "Phones & Tablets",
                "slug": "phones-and-tablets",
                "description": "",
                "hide_description": 0,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "picture": "app/categories/blue/mobile-alt.png",
                "icon_class": "fas fa-mobile-alt",
                "active": 1,
                "lft": 11,
                "rgt": 17,
                "depth": 0,
                "type": "classified",
                "is_for_permanent": 0,
                "parentClosure": null,
                "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mobile-alt.png"
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/categories?page=1",
            "last": "https://demo.laraclassifier.local/api/categories?page=6",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/categories?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 6,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/categories",
            "per_page": 2,
            "to": 2,
            "total": 12
        }
    }
}
 

Request      

GET api/categories

Query Parameters

parentId  integer optional  

The ID of the parent category of the sub categories to retrieve.

nestedIncluded  integer optional  

If parent ID is not provided, are nested entries will be included? - Possible values: 0,1.

embed  string optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: parent,children.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

page  integer optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage").

Get category

Get category by its unique slug or ID.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories/cars?parentCatSlug=automobiles" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/cars"
);

const params = {
    "parentCatSlug": "automobiles",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/categories/cars',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentCatSlug'=> 'automobiles',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "parent_id": 1,
        "name": "Cars",
        "slug": "cars",
        "description": "",
        "hide_description": null,
        "seo_title": "",
        "seo_description": "",
        "seo_keywords": "",
        "picture": "app/default/categories/fa-folder-blue.png",
        "icon_class": "fas fa-folder",
        "active": 1,
        "lft": 2,
        "rgt": 3,
        "depth": 1,
        "type": "classified",
        "is_for_permanent": 0,
        "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
    }
}
 

Request      

GET api/categories/{slugOrId}

URL Parameters

slugOrId  string  

The slug or ID of the category.

Query Parameters

parentCatSlug  string optional  

The slug of the parent category to retrieve used when category's slug provided instead of ID.

List category's fields

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories/1/fields" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"language_code\": \"en\",
    \"post_id\": 1
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/1/fields"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "language_code": "en",
    "post_id": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/categories/1/fields',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'language_code' => 'en',
            'post_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": [
        {
            "id": 1,
            "belongs_to": "posts",
            "name": "Car Brand",
            "type": "select",
            "max": null,
            "default_value": "",
            "required": 1,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 1,
                    "field_id": 1,
                    "value": "Toyota",
                    "parent_id": null,
                    "lft": 1,
                    "rgt": 2,
                    "depth": null
                },
                {
                    "id": 2,
                    "field_id": 1,
                    "value": "BMW",
                    "parent_id": null,
                    "lft": 3,
                    "rgt": 4,
                    "depth": null
                },
                {
                    "id": 3,
                    "field_id": 1,
                    "value": "Mercedes",
                    "parent_id": null,
                    "lft": 5,
                    "rgt": 6,
                    "depth": null
                },
                {
                    "id": 4,
                    "field_id": 1,
                    "value": "Chevrolet",
                    "parent_id": null,
                    "lft": 7,
                    "rgt": 8,
                    "depth": null
                },
                {
                    "id": 5,
                    "field_id": 1,
                    "value": "Cadillac",
                    "parent_id": null,
                    "lft": 9,
                    "rgt": 10,
                    "depth": null
                },
                {
                    "id": 6,
                    "field_id": 1,
                    "value": "Buick",
                    "parent_id": null,
                    "lft": 11,
                    "rgt": 12,
                    "depth": null
                },
                {
                    "id": 7,
                    "field_id": 1,
                    "value": "GMC",
                    "parent_id": null,
                    "lft": 13,
                    "rgt": 14,
                    "depth": null
                },
                {
                    "id": 8,
                    "field_id": 1,
                    "value": "Ford",
                    "parent_id": null,
                    "lft": 15,
                    "rgt": 16,
                    "depth": null
                },
                {
                    "id": 9,
                    "field_id": 1,
                    "value": "Chrysler",
                    "parent_id": null,
                    "lft": 17,
                    "rgt": 18,
                    "depth": null
                },
                {
                    "id": 10,
                    "field_id": 1,
                    "value": "Dodge",
                    "parent_id": null,
                    "lft": 19,
                    "rgt": 20,
                    "depth": null
                },
                {
                    "id": 11,
                    "field_id": 1,
                    "value": "Jeep",
                    "parent_id": null,
                    "lft": 21,
                    "rgt": 22,
                    "depth": null
                },
                {
                    "id": 12,
                    "field_id": 1,
                    "value": "Tesla",
                    "parent_id": null,
                    "lft": 23,
                    "rgt": 24,
                    "depth": null
                },
                {
                    "id": 13,
                    "field_id": 1,
                    "value": "Lexus",
                    "parent_id": null,
                    "lft": 25,
                    "rgt": 26,
                    "depth": null
                },
                {
                    "id": 14,
                    "field_id": 1,
                    "value": "Suzuki",
                    "parent_id": null,
                    "lft": 27,
                    "rgt": 28,
                    "depth": null
                },
                {
                    "id": 15,
                    "field_id": 1,
                    "value": "Mazda",
                    "parent_id": null,
                    "lft": 29,
                    "rgt": 30,
                    "depth": null
                },
                {
                    "id": 16,
                    "field_id": 1,
                    "value": "Honda",
                    "parent_id": null,
                    "lft": 31,
                    "rgt": 32,
                    "depth": null
                },
                {
                    "id": 17,
                    "field_id": 1,
                    "value": "Acura",
                    "parent_id": null,
                    "lft": 33,
                    "rgt": 34,
                    "depth": null
                },
                {
                    "id": 18,
                    "field_id": 1,
                    "value": "Mitsubishi",
                    "parent_id": null,
                    "lft": 35,
                    "rgt": 36,
                    "depth": null
                },
                {
                    "id": 19,
                    "field_id": 1,
                    "value": "Nissan",
                    "parent_id": null,
                    "lft": 37,
                    "rgt": 38,
                    "depth": null
                },
                {
                    "id": 20,
                    "field_id": 1,
                    "value": "Infiniti",
                    "parent_id": null,
                    "lft": 39,
                    "rgt": 40,
                    "depth": null
                },
                {
                    "id": 21,
                    "field_id": 1,
                    "value": "Audi",
                    "parent_id": null,
                    "lft": 41,
                    "rgt": 42,
                    "depth": null
                },
                {
                    "id": 22,
                    "field_id": 1,
                    "value": "Volkswagen",
                    "parent_id": null,
                    "lft": 43,
                    "rgt": 44,
                    "depth": null
                },
                {
                    "id": 23,
                    "field_id": 1,
                    "value": "Porsche",
                    "parent_id": null,
                    "lft": 45,
                    "rgt": 46,
                    "depth": null
                },
                {
                    "id": 24,
                    "field_id": 1,
                    "value": "Opel",
                    "parent_id": null,
                    "lft": 47,
                    "rgt": 48,
                    "depth": null
                },
                {
                    "id": 25,
                    "field_id": 1,
                    "value": "Jaguar",
                    "parent_id": null,
                    "lft": 49,
                    "rgt": 50,
                    "depth": null
                },
                {
                    "id": 26,
                    "field_id": 1,
                    "value": "Land Rover",
                    "parent_id": null,
                    "lft": 51,
                    "rgt": 52,
                    "depth": null
                },
                {
                    "id": 27,
                    "field_id": 1,
                    "value": "Mini",
                    "parent_id": null,
                    "lft": 53,
                    "rgt": 54,
                    "depth": null
                },
                {
                    "id": 28,
                    "field_id": 1,
                    "value": "Aston Martin",
                    "parent_id": null,
                    "lft": 55,
                    "rgt": 56,
                    "depth": null
                },
                {
                    "id": 29,
                    "field_id": 1,
                    "value": "Bentley",
                    "parent_id": null,
                    "lft": 57,
                    "rgt": 58,
                    "depth": null
                },
                {
                    "id": 30,
                    "field_id": 1,
                    "value": "Rolls Royce",
                    "parent_id": null,
                    "lft": 59,
                    "rgt": 60,
                    "depth": null
                },
                {
                    "id": 31,
                    "field_id": 1,
                    "value": "McLaren",
                    "parent_id": null,
                    "lft": 61,
                    "rgt": 62,
                    "depth": null
                },
                {
                    "id": 32,
                    "field_id": 1,
                    "value": "Fiat",
                    "parent_id": null,
                    "lft": 63,
                    "rgt": 64,
                    "depth": null
                },
                {
                    "id": 33,
                    "field_id": 1,
                    "value": "Alfa Romeo",
                    "parent_id": null,
                    "lft": 65,
                    "rgt": 66,
                    "depth": null
                },
                {
                    "id": 34,
                    "field_id": 1,
                    "value": "Maserati",
                    "parent_id": null,
                    "lft": 67,
                    "rgt": 68,
                    "depth": null
                },
                {
                    "id": 35,
                    "field_id": 1,
                    "value": "Ferrari",
                    "parent_id": null,
                    "lft": 69,
                    "rgt": 70,
                    "depth": null
                },
                {
                    "id": 36,
                    "field_id": 1,
                    "value": "Lamborghini",
                    "parent_id": null,
                    "lft": 71,
                    "rgt": 72,
                    "depth": null
                },
                {
                    "id": 37,
                    "field_id": 1,
                    "value": "Pagani",
                    "parent_id": null,
                    "lft": 73,
                    "rgt": 74,
                    "depth": null
                },
                {
                    "id": 38,
                    "field_id": 1,
                    "value": "Lancia",
                    "parent_id": null,
                    "lft": 75,
                    "rgt": 76,
                    "depth": null
                },
                {
                    "id": 39,
                    "field_id": 1,
                    "value": "Renault",
                    "parent_id": null,
                    "lft": 77,
                    "rgt": 78,
                    "depth": null
                },
                {
                    "id": 40,
                    "field_id": 1,
                    "value": "Peugeot",
                    "parent_id": null,
                    "lft": 79,
                    "rgt": 80,
                    "depth": null
                },
                {
                    "id": 41,
                    "field_id": 1,
                    "value": "Citroen",
                    "parent_id": null,
                    "lft": 81,
                    "rgt": 82,
                    "depth": null
                },
                {
                    "id": 42,
                    "field_id": 1,
                    "value": "Bugatti",
                    "parent_id": null,
                    "lft": 83,
                    "rgt": 84,
                    "depth": null
                },
                {
                    "id": 43,
                    "field_id": 1,
                    "value": "Tata",
                    "parent_id": null,
                    "lft": 85,
                    "rgt": 86,
                    "depth": null
                },
                {
                    "id": 44,
                    "field_id": 1,
                    "value": "Hyundai",
                    "parent_id": null,
                    "lft": 87,
                    "rgt": 88,
                    "depth": null
                },
                {
                    "id": 45,
                    "field_id": 1,
                    "value": "Kia",
                    "parent_id": null,
                    "lft": 89,
                    "rgt": 90,
                    "depth": null
                },
                {
                    "id": 46,
                    "field_id": 1,
                    "value": "Daewoo",
                    "parent_id": null,
                    "lft": 91,
                    "rgt": 92,
                    "depth": null
                },
                {
                    "id": 47,
                    "field_id": 1,
                    "value": "Volvo",
                    "parent_id": null,
                    "lft": 93,
                    "rgt": 94,
                    "depth": null
                },
                {
                    "id": 48,
                    "field_id": 1,
                    "value": "Saab",
                    "parent_id": null,
                    "lft": 95,
                    "rgt": 96,
                    "depth": null
                },
                {
                    "id": 49,
                    "field_id": 1,
                    "value": "Lada",
                    "parent_id": null,
                    "lft": 97,
                    "rgt": 98,
                    "depth": null
                },
                {
                    "id": 50,
                    "field_id": 1,
                    "value": "Volga",
                    "parent_id": null,
                    "lft": 99,
                    "rgt": 100,
                    "depth": null
                },
                {
                    "id": 51,
                    "field_id": 1,
                    "value": "Zil",
                    "parent_id": null,
                    "lft": 101,
                    "rgt": 102,
                    "depth": null
                },
                {
                    "id": 52,
                    "field_id": 1,
                    "value": "GAZ",
                    "parent_id": null,
                    "lft": 103,
                    "rgt": 104,
                    "depth": null
                },
                {
                    "id": 53,
                    "field_id": 1,
                    "value": "Geely",
                    "parent_id": null,
                    "lft": 105,
                    "rgt": 106,
                    "depth": null
                },
                {
                    "id": 54,
                    "field_id": 1,
                    "value": "Chery",
                    "parent_id": null,
                    "lft": 107,
                    "rgt": 108,
                    "depth": null
                },
                {
                    "id": 55,
                    "field_id": 1,
                    "value": "Hongqi",
                    "parent_id": null,
                    "lft": 109,
                    "rgt": 110,
                    "depth": null
                },
                {
                    "id": 56,
                    "field_id": 1,
                    "value": "Other",
                    "parent_id": null,
                    "lft": 111,
                    "rgt": 112,
                    "depth": null
                }
            ]
        },
        {
            "id": 2,
            "belongs_to": "posts",
            "name": "Car Model",
            "type": "text",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 3,
            "belongs_to": "posts",
            "name": "Year of registration",
            "type": "number",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 5,
            "belongs_to": "posts",
            "name": "Fuel Type",
            "type": "select",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 57,
                    "field_id": 5,
                    "value": "Essence",
                    "parent_id": null,
                    "lft": 113,
                    "rgt": 114,
                    "depth": null
                },
                {
                    "id": 58,
                    "field_id": 5,
                    "value": "Diesel",
                    "parent_id": null,
                    "lft": 115,
                    "rgt": 116,
                    "depth": null
                }
            ]
        },
        {
            "id": 7,
            "belongs_to": "posts",
            "name": "Transmission",
            "type": "radio",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 63,
                    "field_id": 7,
                    "value": "Automatic",
                    "parent_id": null,
                    "lft": 125,
                    "rgt": 126,
                    "depth": null
                },
                {
                    "id": 64,
                    "field_id": 7,
                    "value": "Manual",
                    "parent_id": null,
                    "lft": 127,
                    "rgt": 128,
                    "depth": null
                }
            ]
        },
        {
            "id": 8,
            "belongs_to": "posts",
            "name": "Condition",
            "type": "select",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 65,
                    "field_id": 8,
                    "value": "New",
                    "parent_id": null,
                    "lft": 129,
                    "rgt": 130,
                    "depth": null
                },
                {
                    "id": 66,
                    "field_id": 8,
                    "value": "Used",
                    "parent_id": null,
                    "lft": 131,
                    "rgt": 132,
                    "depth": null
                }
            ]
        },
        {
            "id": 4,
            "belongs_to": "posts",
            "name": "Mileage",
            "type": "text",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 6,
            "belongs_to": "posts",
            "name": "Features",
            "type": "checkbox_multiple",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 59,
                    "field_id": 6,
                    "value": "Air Conditioner",
                    "parent_id": null,
                    "lft": 117,
                    "rgt": 118,
                    "depth": null
                },
                {
                    "id": 60,
                    "field_id": 6,
                    "value": "GPS",
                    "parent_id": null,
                    "lft": 119,
                    "rgt": 120,
                    "depth": null
                },
                {
                    "id": 61,
                    "field_id": 6,
                    "value": "Security System",
                    "parent_id": null,
                    "lft": 121,
                    "rgt": 122,
                    "depth": null
                },
                {
                    "id": 62,
                    "field_id": 6,
                    "value": "Spare Tire",
                    "parent_id": null,
                    "lft": 123,
                    "rgt": 124,
                    "depth": null
                }
            ]
        }
    ],
    "extra": {
        "errors": [],
        "oldInput": null
    }
}
 

Request      

GET api/categories/{id}/fields

URL Parameters

id  integer  

The ID of the category.

Body Parameters

language_code  string optional  

The code of the user's spoken language.

post_id  integer  

The unique ID of the post.

List category's fields

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/categories/1/fields" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"language_code\": \"en\",
    \"post_id\": 1
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/1/fields"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "language_code": "en",
    "post_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/categories/1/fields',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'language_code' => 'en',
            'post_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/categories/{id}/fields

URL Parameters

id  integer  

The ID of the category.

Body Parameters

language_code  string optional  

The code of the user's spoken language.

post_id  integer  

The unique ID of the post.

Contact

Send Form

Send a message to the site owner.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/contact" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Doe\",
    \"email\": \"john.doe@domain.tld\",
    \"message\": \"Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.\",
    \"country_code\": \"US\",
    \"country_name\": \"United Sates\",
    \"captcha_key\": \"occaecati\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/contact"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@domain.tld",
    "message": "Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.",
    "country_code": "US",
    "country_name": "United Sates",
    "captcha_key": "occaecati"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Doe',
            'email' => 'john.doe@domain.tld',
            'message' => 'Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.',
            'country_code' => 'US',
            'country_name' => 'United Sates',
            'captcha_key' => 'occaecati',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/contact

Body Parameters

first_name  string  

The user's first name.

last_name  string  

The user's last name.

email  string  

The user's email address.

message  string  

The message to send.

country_code  string  

The user's country code.

country_name  string  

The user's country name.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Report post

Report abuse or issues

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/posts/8/report" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"report_type_id\": 2,
    \"email\": \"john.doe@domain.tld\",
    \"message\": \"Et sunt voluptatibus ducimus id assumenda sint.\",
    \"captcha_key\": \"hic\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/8/report"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "report_type_id": 2,
    "email": "john.doe@domain.tld",
    "message": "Et sunt voluptatibus ducimus id assumenda sint.",
    "captcha_key": "hic"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/posts/8/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'report_type_id' => 2,
            'email' => 'john.doe@domain.tld',
            'message' => 'Et sunt voluptatibus ducimus id assumenda sint.',
            'captcha_key' => 'hic',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/posts/{id}/report

URL Parameters

id  integer  

The post ID.

Body Parameters

report_type_id  integer  

The report type ID.

email  string  

The user's email address.

message  string  

The message to send.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Countries

List countries

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries?embed=null&includeNonActive=&iti=&countryCode=null&sort=-name&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: {local-code}" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries"
);

const params = {
    "embed": "null",
    "includeNonActive": "0",
    "iti": "0",
    "countryCode": "null",
    "sort": "-name",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "{local-code}",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/countries',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => '{local-code}',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'includeNonActive'=> '0',
            'iti'=> '0',
            'countryCode'=> 'null',
            'sort'=> '-name',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "AF",
                "name": "Afghanistan",
                "capital": "Kabul",
                "continent_code": "AS",
                "tld": ".af",
                "currency_code": "AFN",
                "phone": "93",
                "languages": "fa-AF,ps,uz-AF,tk",
                "time_zone": null,
                "date_format": null,
                "datetime_format": null,
                "background_image": "app/logo/header-63719ec13cb7e.jpg",
                "admin_type": "0",
                "active": 1,
                "icode": "af",
                "flag_url": "https://demo.laraclassifier.local/images/flags/16/af.png",
                "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumb-2000x1000-header-63719ec13cb7e.jpg"
            },
            {
                "code": "AL",
                "name": "Albania",
                "capital": "Tirana",
                "continent_code": "EU",
                "tld": ".al",
                "currency_code": "ALL",
                "phone": "355",
                "languages": "sq,el",
                "time_zone": null,
                "date_format": null,
                "datetime_format": null,
                "background_image": "app/logo/header-63719ec13ff8c.jpg",
                "admin_type": "0",
                "active": 1,
                "icode": "al",
                "flag_url": "https://demo.laraclassifier.local/images/flags/16/al.png",
                "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumb-2000x1000-header-63719ec13ff8c.jpg"
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries?page=1",
            "last": "https://demo.laraclassifier.local/api/countries?page=122",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 122,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=121",
                    "label": "121",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=122",
                    "label": "122",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries",
            "per_page": 2,
            "to": 2,
            "total": 244
        }
    }
}
 

Request      

GET api/countries

Query Parameters

embed  string optional  

Comma-separated list of the country relationships for Eager Loading - Possible values: currency,continent.

includeNonActive  boolean optional  

Allow to include the non-activated countries in the list.

iti  boolean optional  

Allow to get the countries list for the phone number input (No other parameters need except 'countryCode').

countryCode  string optional  

The code of the current country (Only when the 'iti' parameter is filled to true).

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get country

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/DE?embed=currency" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/DE"
);

const params = {
    "embed": "currency",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/countries/DE',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'currency',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "DE",
        "name": "Germany",
        "capital": "Berlin",
        "continent_code": "EU",
        "tld": ".de",
        "currency_code": "EUR",
        "phone": "49",
        "languages": "de",
        "time_zone": null,
        "date_format": null,
        "datetime_format": null,
        "background_image": "app/logo/header-63719ec1a751b.jpg",
        "admin_type": "1",
        "active": 1,
        "currency": {
            "code": "EUR",
            "name": "Euro Member Countries",
            "symbol": "€",
            "html_entities": "€",
            "in_left": 0,
            "decimal_places": 2,
            "decimal_separator": ",",
            "thousand_separator": " "
        },
        "icode": "de",
        "flag_url": "https://demo.laraclassifier.local/images/flags/16/de.png",
        "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumb-2000x1000-header-63719ec1a751b.jpg"
    }
}
 

Request      

GET api/countries/{code}

URL Parameters

code  string  

The country's ISO 3166-1 code.

Query Parameters

embed  string optional  

Comma-separated list of the country relationships for Eager Loading - Possible values: currency.

List admin. divisions (1)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/subAdmins1?embed=null&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/subAdmins1"
);

const params = {
    "embed": "null",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/countries/US/subAdmins1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> '-name',
            'perPage'=> '2',
            'page'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "US.AL",
                "country_code": "US",
                "name": "Alabama",
                "active": 1
            },
            {
                "code": "US.AK",
                "country_code": "US",
                "name": "Alaska",
                "active": 1
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=26",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 26,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=25",
                    "label": "25",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=26",
                    "label": "26",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/subAdmins1",
            "per_page": 2,
            "to": 2,
            "total": 51
        }
    }
}
 

Request      

GET api/countries/{countryCode}/subAdmins1

URL Parameters

countryCode  string optional  

The country code of the country of the cities to retrieve.

Query Parameters

embed  string optional  

Comma-separated list of the administrative division (1) relationships for Eager Loading - Possible values: country.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

page  integer optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage").

List admin. divisions (2)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/subAdmins2?embed=null&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/subAdmins2"
);

const params = {
    "embed": "null",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/countries/US/subAdmins2',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> '-name',
            'perPage'=> '2',
            'page'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "US.SC.001",
                "country_code": "US",
                "subadmin1_code": "US.SC",
                "name": "Abbeville County",
                "active": 1
            },
            {
                "code": "US.LA.001",
                "country_code": "US",
                "subadmin1_code": "US.LA",
                "name": "Acadia Parish",
                "active": 1
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1572",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 1572,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1571",
                    "label": "1571",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1572",
                    "label": "1572",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/subAdmins2",
            "per_page": 2,
            "to": 2,
            "total": 3143
        }
    }
}
 

Request      

GET api/countries/{countryCode}/subAdmins2

URL Parameters

countryCode  string optional  

The country code of the country of the cities to retrieve.

Query Parameters

embed  string optional  

Comma-separated list of the administrative division (2) relationships for Eager Loading - Possible values: country,subAdmin1.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

page  integer optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage").

List cities

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/cities?embed=null&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/cities"
);

const params = {
    "embed": "null",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/countries/US/cities',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> '-name',
            'perPage'=> '2',
            'page'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 45650,
                "country_code": "US",
                "name": "Abbeville",
                "latitude": "34.18",
                "longitude": "-82.38",
                "subadmin1_code": "US.SC",
                "subadmin2_code": "US.SC.001",
                "population": 5191,
                "time_zone": "America/New_York",
                "active": 1,
                "posts_count": 0
            },
            {
                "id": 44696,
                "country_code": "US",
                "name": "Abbeville",
                "latitude": "29.97",
                "longitude": "-92.13",
                "subadmin1_code": "US.LA",
                "subadmin2_code": "US.LA.113",
                "population": 12434,
                "time_zone": "America/Chicago",
                "active": 1,
                "posts_count": 0
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/cities?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/cities?page=3600",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/cities?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 3600,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3599",
                    "label": "3599",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3600",
                    "label": "3600",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/cities",
            "per_page": 2,
            "to": 2,
            "total": 7200
        }
    }
}
 

Request      

GET api/countries/{countryCode}/cities

URL Parameters

countryCode  string optional  

The country code of the country of the cities to retrieve.

Query Parameters

embed  string optional  

Comma-separated list of the city relationships for Eager Loading - Possible values: country,subAdmin1,subAdmin2.

sort  string optional  

string|array The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name,population.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

page  integer optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage").

Get admin. division (1)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/subAdmins1/CH.VD?embed=null" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/subAdmins1/CH.VD"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/subAdmins1/CH.VD',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "CH.VD",
        "country_code": "CH",
        "name": "Vaud",
        "active": 1
    }
}
 

Request      

GET api/subAdmins1/{code}

URL Parameters

code  string  

The administrative division (1)'s code.

Query Parameters

embed  string optional  

Comma-separated list of the administrative division (1) relationships for Eager Loading - Possible values: country.

Get admin. division (2)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225?embed=null" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "CH.VD.2225",
        "country_code": "CH",
        "subadmin1_code": "CH.VD",
        "name": "Lausanne District",
        "active": 1
    }
}
 

Request      

GET api/subAdmins2/{code}

URL Parameters

code  string  

The administrative division (2)'s code.

Query Parameters

embed  string optional  

Comma-separated list of the administrative division (2) relationships for Eager Loading - Possible values: country,subAdmin1.

Get city

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/cities/12544?embed=country" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/cities/12544"
);

const params = {
    "embed": "country",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/cities/12544',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'country',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 12544,
        "country_code": "DE",
        "name": "Berlin",
        "latitude": "52.52",
        "longitude": "13.41",
        "subadmin1_code": "DE.16",
        "subadmin2_code": "DE.16.00",
        "population": 3426354,
        "time_zone": "Europe/Berlin",
        "active": 1,
        "country": {
            "code": "DE",
            "name": "Germany",
            "capital": "Berlin",
            "continent_code": "EU",
            "tld": ".de",
            "currency_code": "EUR",
            "phone": "49",
            "languages": "de",
            "time_zone": null,
            "date_format": null,
            "datetime_format": null,
            "background_image": "app/logo/header-63719ec1a751b.jpg",
            "admin_type": "1",
            "active": 1,
            "icode": "de",
            "flag_url": "https://demo.laraclassifier.local/images/flags/16/de.png",
            "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumb-2000x1000-header-63719ec1a751b.jpg"
        },
        "posts_count": 0
    }
}
 

Request      

GET api/cities/{id}

URL Parameters

id  integer  

The city's ID.

Query Parameters

embed  string optional  

Comma-separated list of the city relationships for Eager Loading - Possible values: country,subAdmin1,subAdmin2.

Endpoints

List reviews

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/plugins/posts/2/reviews" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"postId\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/2/reviews"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "postId": 2
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/plugins/posts/2/reviews',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'postId' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": "global.no_reviews_found",
    "result": {
        "data": [],
        "links": {
            "first": "https://demo.laraclassifier.local/api/plugins/posts/2/reviews?page=1",
            "last": "https://demo.laraclassifier.local/api/plugins/posts/2/reviews?page=1",
            "prev": null,
            "next": null
        },
        "meta": {
            "current_page": 1,
            "from": null,
            "last_page": 1,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/plugins/posts/2/reviews?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/plugins/posts/2/reviews",
            "per_page": 16,
            "to": null,
            "total": 0
        }
    }
}
 

Request      

GET api/plugins/posts/{postId}/reviews

URL Parameters

postId  integer  

Body Parameters

postId  integer  

The post's ID.

Store review

requires authentication

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/plugins/posts/0/reviews" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"comment\": \"null\",
    \"rating\": 4,
    \"post_id\": 0,
    \"user_id\": 0,
    \"captcha_key\": \"quidem\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/0/reviews"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "comment": "null",
    "rating": 4,
    "post_id": 0,
    "user_id": 0,
    "captcha_key": "quidem"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/plugins/posts/0/reviews',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'comment' => 'null',
            'rating' => 4,
            'post_id' => 0,
            'user_id' => 0,
            'captcha_key' => 'quidem',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/plugins/posts/{postId}/reviews

URL Parameters

postId  integer  

The listing's ID.

Body Parameters

comment  string  

The review's message.

rating  integer  

The review's rating.

post_id  integer  

The listing's ID.

user_id  integer optional  

The logged user's ID.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Delete review(s)

requires authentication

NOTE: Let's consider that only the reviews of the same listings can be deleted in bulk.

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/plugins/posts/0/reviews/voluptatibus" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/0/reviews/voluptatibus"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/plugins/posts/0/reviews/voluptatibus',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/plugins/posts/{postId}/reviews/{ids}

URL Parameters

postId  integer  

The listing's ID.

ids  string  

The ID or comma-separated IDs list of review(s).

Home

List sections

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/homeSections" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/homeSections"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/homeSections',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": {
            "getSearchForm": {
                "method": "getSearchForm",
                "data": [],
                "view": "home.inc.search",
                "getSearchFormOp": {
                    "enable_extended_form_area": "1",
                    "background_color": null,
                    "background_image": "app/logo/header-63847aa3ba456.jpeg",
                    "background_image_darken": "0.1",
                    "height": null,
                    "parallax": "0",
                    "hide_form": "0",
                    "form_border_color": null,
                    "form_border_width": null,
                    "form_border_radius": null,
                    "form_btn_background_color": null,
                    "form_btn_text_color": null,
                    "hide_titles": "0",
                    "title_en": "Sell and Buy near you",
                    "sub_title_en": "Simple, fast and efficient",
                    "title_fr": "Vendre et acheter près de chez vous",
                    "sub_title_fr": "Simple, rapide et efficace",
                    "title_es": "Vender y comprar cerca de usted",
                    "sub_title_es": "Simple, rápido y eficiente",
                    "title_ar": "بيع وشراء بالقرب منك",
                    "sub_title_ar": "بسيطة وسريعة وفعالة",
                    "title_pt": "Vender e comprar perto de si",
                    "sub_title_pt": "Simples, Rápido e Eficiente",
                    "title_de": "Verkaufen und Kaufen in Ihrer Nähe",
                    "sub_title_de": "Einfach, schnell und effizient",
                    "title_it": "Vendi e compra vicino a te",
                    "sub_title_it": "Semplice, veloce ed efficiente",
                    "title_tr": "Size yakın satıp satın alın",
                    "sub_title_tr": "Basit, hızlı ve verimli",
                    "title_ru": "Продавайте и покупайте рядом с вами",
                    "sub_title_ru": "Просто, быстро и эффективно",
                    "title_hi": "अपने पास बेचें और खरीदें",
                    "sub_title_hi": "सरल, तेज और कुशल",
                    "title_bn": "আপনার কাছাকাছি বিক্রি করুন এবং কিনুন",
                    "sub_title_bn": "সহজ, দ্রুত এবং দক্ষ",
                    "title_zh": "在您附近买卖",
                    "sub_title_zh": "简单,快速,高效",
                    "title_ja": "お近くの売買",
                    "sub_title_ja": "シンプル、迅速かつ効率的",
                    "title_th": "ขายและซื้อใกล้บ้านคุณ",
                    "sub_title_th": "ง่ายรวดเร็วและมีประสิทธิภาพ",
                    "title_ro": "Vinde și Cumpără inteligent",
                    "sub_title_ro": "Simplu, rapid și eficient!",
                    "title_ka": "გაყიდვა და შეძენა ახლოს თქვენ",
                    "sub_title_ka": "მარტივი, სწრაფი და ეფექტური",
                    "big_title_color": null,
                    "sub_title_color": null,
                    "hide_on_mobile": "0",
                    "active": "1",
                    "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumb-2000x1000-header-63847aa3ba456.jpeg"
                },
                "lft": 0
            },
            "getLocations": {
                "method": "getLocations",
                "data": {
                    "cities": [
                        [
                            {
                                "id": 48225,
                                "country_code": "US",
                                "name": "New York City",
                                "longitude": "-74.01",
                                "latitude": "40.71",
                                "feature_class": "P",
                                "feature_code": "PPL",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": null,
                                "population": 8804190,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "new-york-city"
                            },
                            {
                                "id": 49443,
                                "country_code": "US",
                                "name": "Los Angeles",
                                "longitude": "-118.24",
                                "latitude": "34.05",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.037",
                                "population": 3971883,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-12-12T00:00:00.000000Z",
                                "updated_at": "2019-12-12T00:00:00.000000Z",
                                "slug": "los-angeles"
                            },
                            {
                                "id": 46654,
                                "country_code": "US",
                                "name": "Chicago",
                                "longitude": "-87.65",
                                "latitude": "41.85",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.IL",
                                "subadmin2_code": "US.IL.031",
                                "population": 2720546,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2019-10-07T00:00:00.000000Z",
                                "updated_at": "2019-10-07T00:00:00.000000Z",
                                "slug": "chicago"
                            },
                            {
                                "id": 47977,
                                "country_code": "US",
                                "name": "Brooklyn",
                                "longitude": "-73.95",
                                "latitude": "40.65",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.047",
                                "population": 2300664,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2015-01-18T00:00:00.000000Z",
                                "updated_at": "2015-01-18T00:00:00.000000Z",
                                "slug": "brooklyn"
                            },
                            {
                                "id": 46017,
                                "country_code": "US",
                                "name": "Houston",
                                "longitude": "-95.36",
                                "latitude": "29.76",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.201",
                                "population": 2296224,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2021-07-25T00:00:00.000000Z",
                                "updated_at": "2021-07-25T00:00:00.000000Z",
                                "slug": "houston"
                            }
                        ],
                        [
                            {
                                "id": 48286,
                                "country_code": "US",
                                "name": "Queens",
                                "longitude": "-73.84",
                                "latitude": "40.68",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.081",
                                "population": 2272771,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-07-30T00:00:00.000000Z",
                                "updated_at": "2021-07-30T00:00:00.000000Z",
                                "slug": "queens"
                            },
                            {
                                "id": 49093,
                                "country_code": "US",
                                "name": "Phoenix",
                                "longitude": "-112.07",
                                "latitude": "33.45",
                                "feature_class": "P",
                                "feature_code": "PPLA",
                                "subadmin1_code": "US.AZ",
                                "subadmin2_code": "US.AZ.013",
                                "population": 1608139,
                                "time_zone": "America/Phoenix",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "phoenix"
                            },
                            {
                                "id": 45632,
                                "country_code": "US",
                                "name": "Philadelphia",
                                "longitude": "-75.16",
                                "latitude": "39.95",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.PA",
                                "subadmin2_code": "US.PA.101",
                                "population": 1603797,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "philadelphia"
                            },
                            {
                                "id": 48176,
                                "country_code": "US",
                                "name": "Manhattan",
                                "longitude": "-73.97",
                                "latitude": "40.78",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.061",
                                "population": 1487536,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-08-20T00:00:00.000000Z",
                                "updated_at": "2021-08-20T00:00:00.000000Z",
                                "slug": "manhattan"
                            },
                            {
                                "id": 46150,
                                "country_code": "US",
                                "name": "San Antonio",
                                "longitude": "-98.49",
                                "latitude": "29.42",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.029",
                                "population": 1469845,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2019-09-19T00:00:00.000000Z",
                                "updated_at": "2019-09-19T00:00:00.000000Z",
                                "slug": "san-antonio"
                            }
                        ],
                        [
                            {
                                "id": 49614,
                                "country_code": "US",
                                "name": "San Diego",
                                "longitude": "-117.16",
                                "latitude": "32.72",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.073",
                                "population": 1394928,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-09-05T00:00:00.000000Z",
                                "updated_at": "2019-09-05T00:00:00.000000Z",
                                "slug": "san-diego"
                            },
                            {
                                "id": 47975,
                                "country_code": "US",
                                "name": "The Bronx",
                                "longitude": "-73.87",
                                "latitude": "40.85",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.005",
                                "population": 1385108,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-08-08T00:00:00.000000Z",
                                "updated_at": "2021-08-08T00:00:00.000000Z",
                                "slug": "the-bronx"
                            },
                            {
                                "id": 45946,
                                "country_code": "US",
                                "name": "Dallas",
                                "longitude": "-96.81",
                                "latitude": "32.78",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.113",
                                "population": 1300092,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2021-07-25T00:00:00.000000Z",
                                "updated_at": "2021-07-25T00:00:00.000000Z",
                                "slug": "dallas"
                            },
                            {
                                "id": 49621,
                                "country_code": "US",
                                "name": "San Jose",
                                "longitude": "-121.89",
                                "latitude": "37.34",
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.085",
                                "population": 1026908,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-09-05T00:00:00.000000Z",
                                "updated_at": "2019-09-05T00:00:00.000000Z",
                                "slug": "san-jose"
                            },
                            {
                                "id": 0,
                                "name": "More cities »",
                                "subadmin1_code": 0
                            }
                        ]
                    ]
                },
                "view": "home.inc.locations",
                "getLocationsOp": {
                    "show_cities": "1",
                    "show_post_btn": "1",
                    "background_color": null,
                    "border_width": null,
                    "border_color": null,
                    "text_color": null,
                    "link_color": null,
                    "link_color_hover": null,
                    "max_items": "14",
                    "items_cols": "3",
                    "count_cities_posts": "0",
                    "cache_expiration": "3600",
                    "show_map": "1",
                    "map_background_color": null,
                    "map_border": null,
                    "map_hover_border": null,
                    "map_border_width": null,
                    "map_color": null,
                    "map_hover": null,
                    "map_width": "300px",
                    "map_height": "300px",
                    "active": "1",
                    "show_listing_btn": "1"
                },
                "lft": 2
            },
            "getSponsoredPosts": {
                "method": "getSponsoredPosts",
                "data": {
                    "featured": {
                        "title": "<span style=\"font-weight: bold;\">Premium</span> Listings",
                        "link": "https://demo.laraclassifier.local/search",
                        "posts": [
                            {
                                "id": 8345,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 10,
                                "post_type_id": 2,
                                "title": "Nokia 3.4 white",
                                "description": "",
                                "tags": [],
                                "price": "97.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 45548,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:55:21.000000Z",
                                "phone_verified_at": "2022-11-14T01:55:21.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:55:21.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T02:41:18.000000Z",
                                "updated_at": "2022-12-03T15:06:35.962037Z",
                                "user": null,
                                "category": {
                                    "id": 10,
                                    "parent_id": 9,
                                    "name": "Mobile Phones",
                                    "slug": "mobile-phones",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 12,
                                    "rgt": 13,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 9,
                                        "parent_id": null,
                                        "name": "Phones & Tablets",
                                        "slug": "phones-and-tablets",
                                        "description": "",
                                        "hide_description": 0,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/mobile-alt.png",
                                        "icon_class": "fas fa-mobile-alt",
                                        "active": 1,
                                        "lft": 11,
                                        "rgt": 17,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mobile-alt.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 45548,
                                    "country_code": "US",
                                    "name": "Clinton",
                                    "latitude": "35.52",
                                    "longitude": "-98.97",
                                    "subadmin1_code": "US.OK",
                                    "subadmin2_code": "US.OK.039",
                                    "population": 9565,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 445,
                                    "post_id": 8345,
                                    "package_id": 3,
                                    "payment_method_id": 10,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 3,
                                        "name": "Top page Ad+",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promo_duration": 30,
                                        "duration": 120,
                                        "pictures_limit": 15,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 13004,
                                        "post_id": 8345,
                                        "filename": "files/us/8345/e601fcecee95ef988896a8285b9079d1.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e601fcecee95ef988896a8285b9079d1.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-120x90-e601fcecee95ef988896a8285b9079d1.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-320x240-e601fcecee95ef988896a8285b9079d1.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e601fcecee95ef988896a8285b9079d1.jpg"
                                        }
                                    },
                                    {
                                        "id": 13005,
                                        "post_id": 8345,
                                        "filename": "files/us/8345/91335720712399b4e68842de9eb953e8.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-91335720712399b4e68842de9eb953e8.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-120x90-91335720712399b4e68842de9eb953e8.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-320x240-91335720712399b4e68842de9eb953e8.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-91335720712399b4e68842de9eb953e8.jpg"
                                        }
                                    },
                                    {
                                        "id": 13002,
                                        "post_id": 8345,
                                        "filename": "files/us/8345/7334e17013c01954854b756547e2ad2e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-7334e17013c01954854b756547e2ad2e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-120x90-7334e17013c01954854b756547e2ad2e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-320x240-7334e17013c01954854b756547e2ad2e.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-7334e17013c01954854b756547e2ad2e.jpg"
                                        }
                                    },
                                    {
                                        "id": 13003,
                                        "post_id": 8345,
                                        "filename": "files/us/8345/e557b64568fba1dd9d39aec904714ffe.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e557b64568fba1dd9d39aec904714ffe.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-120x90-e557b64568fba1dd9d39aec904714ffe.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-320x240-e557b64568fba1dd9d39aec904714ffe.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e557b64568fba1dd9d39aec904714ffe.jpg"
                                        }
                                    }
                                ],
                                "slug": "nokia-3.4-white",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$97",
                                "count_pictures": 4,
                                "picture": {
                                    "filename": "files/us/8345/e601fcecee95ef988896a8285b9079d1.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e601fcecee95ef988896a8285b9079d1.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-120x90-e601fcecee95ef988896a8285b9079d1.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-320x240-e601fcecee95ef988896a8285b9079d1.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/8345/thumb-816x460-e601fcecee95ef988896a8285b9079d1.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 5136,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 19,
                                "post_type_id": 1,
                                "title": "HP Envy x [***] ",
                                "description": "",
                                "tags": [],
                                "price": "37446.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 44274,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:52:18.000000Z",
                                "phone_verified_at": "2022-11-14T01:52:18.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:52:18.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-10-25T07:32:12.000000Z",
                                "updated_at": "2022-12-03T15:06:35.999845Z",
                                "user": null,
                                "category": {
                                    "id": 19,
                                    "parent_id": 14,
                                    "name": "Computer Accessories",
                                    "slug": "computer-accessories",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 23,
                                    "rgt": 24,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-laptop.png",
                                        "icon_class": "fas fa-laptop",
                                        "active": 1,
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-laptop.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 44274,
                                    "country_code": "US",
                                    "name": "Barnesville",
                                    "latitude": "33.05",
                                    "longitude": "-84.16",
                                    "subadmin1_code": "US.GA",
                                    "subadmin2_code": "US.GA.171",
                                    "population": 6625,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 98,
                                    "post_id": 5136,
                                    "package_id": 3,
                                    "payment_method_id": 10,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 3,
                                        "name": "Top page Ad+",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promo_duration": 30,
                                        "duration": 120,
                                        "pictures_limit": 15,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 8091,
                                        "post_id": 5136,
                                        "filename": "files/us/5136/918da40e5fa78a3e3b00de83da2453bd.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-120x90-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-320x240-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-918da40e5fa78a3e3b00de83da2453bd.jpg"
                                        }
                                    },
                                    {
                                        "id": 8090,
                                        "post_id": 5136,
                                        "filename": "files/us/5136/27d17e11d5b9648237e7ed2156d3d9ff.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-27d17e11d5b9648237e7ed2156d3d9ff.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-120x90-27d17e11d5b9648237e7ed2156d3d9ff.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-320x240-27d17e11d5b9648237e7ed2156d3d9ff.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-27d17e11d5b9648237e7ed2156d3d9ff.jpg"
                                        }
                                    }
                                ],
                                "slug": "hp-envy-x",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$37,446",
                                "count_pictures": 2,
                                "picture": {
                                    "filename": "files/us/5136/918da40e5fa78a3e3b00de83da2453bd.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-120x90-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-320x240-918da40e5fa78a3e3b00de83da2453bd.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/5136/thumb-816x460-918da40e5fa78a3e3b00de83da2453bd.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 9479,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 42,
                                "post_type_id": 2,
                                "title": "Bungalow for rental",
                                "description": "",
                                "tags": [],
                                "price": "1345.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46747,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:56:57.000000Z",
                                "phone_verified_at": "2022-11-14T01:56:57.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:56:57.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-10-15T08:57:23.000000Z",
                                "updated_at": "2022-12-03T15:06:36.036525Z",
                                "user": null,
                                "category": {
                                    "id": 42,
                                    "parent_id": 37,
                                    "name": "Commercial Property For Rent",
                                    "slug": "commercial-property-for-rent",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 50,
                                    "rgt": 51,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 37,
                                        "parent_id": null,
                                        "name": "Real estate",
                                        "slug": "real-estate",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-home.png",
                                        "icon_class": "fas fa-home",
                                        "active": 1,
                                        "lft": 45,
                                        "rgt": 55,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-home.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 46747,
                                    "country_code": "US",
                                    "name": "La Salle",
                                    "latitude": "41.33",
                                    "longitude": "-89.09",
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.099",
                                    "population": 9609,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 15,
                                    "post_id": 9479,
                                    "package_id": 3,
                                    "payment_method_id": 1,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 3,
                                        "name": "Top page Ad+",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promo_duration": 30,
                                        "duration": 120,
                                        "pictures_limit": 15,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 14716,
                                        "post_id": 9479,
                                        "filename": "files/us/9479/e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-e7f87020b3afe0403c7f028f698e9aaa.jpg"
                                        }
                                    },
                                    {
                                        "id": 14714,
                                        "post_id": 9479,
                                        "filename": "files/us/9479/95bc80224ea79b01df3dd6c08b16d441.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-95bc80224ea79b01df3dd6c08b16d441.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-95bc80224ea79b01df3dd6c08b16d441.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-95bc80224ea79b01df3dd6c08b16d441.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-95bc80224ea79b01df3dd6c08b16d441.jpg"
                                        }
                                    },
                                    {
                                        "id": 14713,
                                        "post_id": 9479,
                                        "filename": "files/us/9479/418a98390d6649854939050ed0afd487.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-418a98390d6649854939050ed0afd487.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-418a98390d6649854939050ed0afd487.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-418a98390d6649854939050ed0afd487.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-418a98390d6649854939050ed0afd487.jpg"
                                        }
                                    },
                                    {
                                        "id": 14715,
                                        "post_id": 9479,
                                        "filename": "files/us/9479/a42cc1ce34a787e445536328b0c5223c.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-a42cc1ce34a787e445536328b0c5223c.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-a42cc1ce34a787e445536328b0c5223c.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-a42cc1ce34a787e445536328b0c5223c.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-a42cc1ce34a787e445536328b0c5223c.jpg"
                                        }
                                    },
                                    {
                                        "id": 14712,
                                        "post_id": 9479,
                                        "filename": "files/us/9479/eb7f32c7c5186b21cab28aecea7445f9.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-eb7f32c7c5186b21cab28aecea7445f9.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-eb7f32c7c5186b21cab28aecea7445f9.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-eb7f32c7c5186b21cab28aecea7445f9.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-eb7f32c7c5186b21cab28aecea7445f9.jpg"
                                        }
                                    }
                                ],
                                "slug": "bungalow-for-rental",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$1,345",
                                "count_pictures": 5,
                                "picture": {
                                    "filename": "files/us/9479/e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-120x90-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-320x240-e7f87020b3afe0403c7f028f698e9aaa.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/9479/thumb-816x460-e7f87020b3afe0403c7f028f698e9aaa.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 2369,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 8,
                                "post_type_id": 2,
                                "title": "Toyota Prius white color",
                                "description": "",
                                "tags": [],
                                "price": "40686.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 44747,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:51:06.000000Z",
                                "phone_verified_at": "2022-11-14T01:51:06.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:51:06.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-11T22:29:50.000000Z",
                                "updated_at": "2022-12-03T15:06:36.071356Z",
                                "user": null,
                                "category": {
                                    "id": 8,
                                    "parent_id": 1,
                                    "name": "Watercraft & Boats",
                                    "slug": "watercraft-and-boats",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 8,
                                    "rgt": 9,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 1,
                                        "parent_id": null,
                                        "name": "Automobiles",
                                        "slug": "automobiles",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/car.png",
                                        "icon_class": "fas fa-car",
                                        "active": 1,
                                        "lft": 1,
                                        "rgt": 10,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-car.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 44747,
                                    "country_code": "US",
                                    "name": "Mandeville",
                                    "latitude": "30.36",
                                    "longitude": "-90.07",
                                    "subadmin1_code": "US.LA",
                                    "subadmin2_code": "US.LA.103",
                                    "population": 12345,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 303,
                                    "post_id": 2369,
                                    "package_id": 2,
                                    "payment_method_id": 6,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 3836,
                                        "post_id": 2369,
                                        "filename": "files/us/2369/c1885542e65822758a170dd7d5010309.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-c1885542e65822758a170dd7d5010309.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-c1885542e65822758a170dd7d5010309.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-c1885542e65822758a170dd7d5010309.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-c1885542e65822758a170dd7d5010309.jpg"
                                        }
                                    },
                                    {
                                        "id": 3835,
                                        "post_id": 2369,
                                        "filename": "files/us/2369/6819ed61af21869cd346e1fada6e332b.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-6819ed61af21869cd346e1fada6e332b.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-6819ed61af21869cd346e1fada6e332b.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-6819ed61af21869cd346e1fada6e332b.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-6819ed61af21869cd346e1fada6e332b.jpg"
                                        }
                                    },
                                    {
                                        "id": 3834,
                                        "post_id": 2369,
                                        "filename": "files/us/2369/cb932dee716a5f1deebc3f2ecea61943.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-cb932dee716a5f1deebc3f2ecea61943.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-cb932dee716a5f1deebc3f2ecea61943.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-cb932dee716a5f1deebc3f2ecea61943.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-cb932dee716a5f1deebc3f2ecea61943.jpg"
                                        }
                                    },
                                    {
                                        "id": 3833,
                                        "post_id": 2369,
                                        "filename": "files/us/2369/a2b888fc9330ceb6b5055492473a2b75.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-a2b888fc9330ceb6b5055492473a2b75.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-a2b888fc9330ceb6b5055492473a2b75.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-a2b888fc9330ceb6b5055492473a2b75.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-a2b888fc9330ceb6b5055492473a2b75.jpg"
                                        }
                                    },
                                    {
                                        "id": 3837,
                                        "post_id": 2369,
                                        "filename": "files/us/2369/aa2e9f6729e0bc7ef52aa6a3ce112384.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-aa2e9f6729e0bc7ef52aa6a3ce112384.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-aa2e9f6729e0bc7ef52aa6a3ce112384.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-aa2e9f6729e0bc7ef52aa6a3ce112384.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-aa2e9f6729e0bc7ef52aa6a3ce112384.jpg"
                                        }
                                    }
                                ],
                                "slug": "toyota-prius-white-color",
                                "phone_intl": "",
                                "created_at_formatted": "3 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$40,686",
                                "count_pictures": 5,
                                "picture": {
                                    "filename": "files/us/2369/c1885542e65822758a170dd7d5010309.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-c1885542e65822758a170dd7d5010309.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-120x90-c1885542e65822758a170dd7d5010309.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-320x240-c1885542e65822758a170dd7d5010309.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/2369/thumb-816x460-c1885542e65822758a170dd7d5010309.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 5189,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 2,
                                "post_type_id": 1,
                                "title": "Subaru Legacy",
                                "description": "",
                                "tags": [],
                                "price": "6060.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48654,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:52:20.000000Z",
                                "phone_verified_at": "2022-11-14T01:52:20.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:52:20.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-07T05:36:12.000000Z",
                                "updated_at": "2022-12-03T15:06:36.108314Z",
                                "user": null,
                                "category": {
                                    "id": 2,
                                    "parent_id": 1,
                                    "name": "Cars",
                                    "slug": "cars",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 2,
                                    "rgt": 3,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 1,
                                        "parent_id": null,
                                        "name": "Automobiles",
                                        "slug": "automobiles",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/car.png",
                                        "icon_class": "fas fa-car",
                                        "active": 1,
                                        "lft": 1,
                                        "rgt": 10,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-car.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 48654,
                                    "country_code": "US",
                                    "name": "Dickson City",
                                    "latitude": "41.47",
                                    "longitude": "-75.61",
                                    "subadmin1_code": "US.PA",
                                    "subadmin2_code": "US.PA.069",
                                    "population": 5877,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 439,
                                    "post_id": 5189,
                                    "package_id": 2,
                                    "payment_method_id": 8,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 8173,
                                        "post_id": 5189,
                                        "filename": "files/us/5189/ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-120x90-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-320x240-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg"
                                        }
                                    },
                                    {
                                        "id": 8175,
                                        "post_id": 5189,
                                        "filename": "files/us/5189/e4626cff69b76f2da3a67831619bca14.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-e4626cff69b76f2da3a67831619bca14.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-120x90-e4626cff69b76f2da3a67831619bca14.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-320x240-e4626cff69b76f2da3a67831619bca14.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-e4626cff69b76f2da3a67831619bca14.jpg"
                                        }
                                    },
                                    {
                                        "id": 8174,
                                        "post_id": 5189,
                                        "filename": "files/us/5189/5887babce4f44e10226723237beeab34.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-5887babce4f44e10226723237beeab34.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-120x90-5887babce4f44e10226723237beeab34.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-320x240-5887babce4f44e10226723237beeab34.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-5887babce4f44e10226723237beeab34.jpg"
                                        }
                                    }
                                ],
                                "slug": "subaru-legacy",
                                "phone_intl": "",
                                "created_at_formatted": "3 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$6,060",
                                "count_pictures": 3,
                                "picture": {
                                    "filename": "files/us/5189/ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-120x90-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-320x240-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/5189/thumb-816x460-ea0c12ad63f92c9d49bd2cfe2ea4b5a5.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 466,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 22,
                                "post_type_id": 2,
                                "title": "Lightning to USB Camera Adapter white",
                                "description": "",
                                "tags": [],
                                "price": "58.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 43958,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:50:24.000000Z",
                                "phone_verified_at": "2022-11-14T01:50:24.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:50:24.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-02T17:10:09.000000Z",
                                "updated_at": "2022-12-03T15:06:36.143433Z",
                                "user": null,
                                "category": {
                                    "id": 22,
                                    "parent_id": 14,
                                    "name": "Headphones",
                                    "slug": "headphones",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 26,
                                    "rgt": 27,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-laptop.png",
                                        "icon_class": "fas fa-laptop",
                                        "active": 1,
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-laptop.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 43958,
                                    "country_code": "US",
                                    "name": "Holly Hill",
                                    "latitude": "29.24",
                                    "longitude": "-81.04",
                                    "subadmin1_code": "US.FL",
                                    "subadmin2_code": "US.FL.127",
                                    "population": 11943,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 365,
                                    "post_id": 466,
                                    "package_id": 2,
                                    "payment_method_id": 3,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 921,
                                        "post_id": 466,
                                        "filename": "files/us/466/51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/466/thumb-816x460-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/466/thumb-120x90-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/466/thumb-320x240-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/466/thumb-816x460-51c01d4e6eefa1987bbe43ca368578ca.jpg"
                                        }
                                    }
                                ],
                                "slug": "lightning-to-usb-camera-adapter-white",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$58",
                                "count_pictures": 1,
                                "picture": {
                                    "filename": "files/us/466/51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/466/thumb-816x460-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/466/thumb-120x90-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/466/thumb-320x240-51c01d4e6eefa1987bbe43ca368578ca.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/466/thumb-816x460-51c01d4e6eefa1987bbe43ca368578ca.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 46,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 42,
                                "post_type_id": 2,
                                "title": "Studio & Room for rent",
                                "description": "",
                                "tags": [],
                                "price": "665.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46675,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:49:47.000000Z",
                                "phone_verified_at": "2022-11-14T01:49:47.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:49:47.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-10-26T10:50:57.000000Z",
                                "updated_at": "2022-12-03T15:06:36.179146Z",
                                "user": null,
                                "category": {
                                    "id": 42,
                                    "parent_id": 37,
                                    "name": "Commercial Property For Rent",
                                    "slug": "commercial-property-for-rent",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 50,
                                    "rgt": 51,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 37,
                                        "parent_id": null,
                                        "name": "Real estate",
                                        "slug": "real-estate",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-home.png",
                                        "icon_class": "fas fa-home",
                                        "active": 1,
                                        "lft": 45,
                                        "rgt": 55,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-home.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 46675,
                                    "country_code": "US",
                                    "name": "Des Plaines",
                                    "latitude": "42.03",
                                    "longitude": "-87.88",
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.031",
                                    "population": 58677,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 109,
                                    "post_id": 46,
                                    "package_id": 2,
                                    "payment_method_id": 6,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 147,
                                        "post_id": 46,
                                        "filename": "files/us/46/d43cf43076fc777a3d312d02209894db.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-d43cf43076fc777a3d312d02209894db.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/46/thumb-120x90-d43cf43076fc777a3d312d02209894db.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/46/thumb-320x240-d43cf43076fc777a3d312d02209894db.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-d43cf43076fc777a3d312d02209894db.jpg"
                                        }
                                    },
                                    {
                                        "id": 146,
                                        "post_id": 46,
                                        "filename": "files/us/46/536d09306976e55ca2e38dac8b670cf1.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-536d09306976e55ca2e38dac8b670cf1.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/46/thumb-120x90-536d09306976e55ca2e38dac8b670cf1.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/46/thumb-320x240-536d09306976e55ca2e38dac8b670cf1.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-536d09306976e55ca2e38dac8b670cf1.jpg"
                                        }
                                    },
                                    {
                                        "id": 145,
                                        "post_id": 46,
                                        "filename": "files/us/46/e92b0d5f1ebfee3dc22b197de73b255d.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-e92b0d5f1ebfee3dc22b197de73b255d.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/46/thumb-120x90-e92b0d5f1ebfee3dc22b197de73b255d.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/46/thumb-320x240-e92b0d5f1ebfee3dc22b197de73b255d.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-e92b0d5f1ebfee3dc22b197de73b255d.jpg"
                                        }
                                    }
                                ],
                                "slug": "studio-room-for-rent",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$665",
                                "count_pictures": 3,
                                "picture": {
                                    "filename": "files/us/46/d43cf43076fc777a3d312d02209894db.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-d43cf43076fc777a3d312d02209894db.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/46/thumb-120x90-d43cf43076fc777a3d312d02209894db.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/46/thumb-320x240-d43cf43076fc777a3d312d02209894db.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/46/thumb-816x460-d43cf43076fc777a3d312d02209894db.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 114,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 31,
                                "post_type_id": 1,
                                "title": "Desks black color",
                                "description": "",
                                "tags": [],
                                "price": "53459.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 45412,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:49:52.000000Z",
                                "phone_verified_at": "2022-11-14T01:49:52.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:49:52.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-10-23T17:04:21.000000Z",
                                "updated_at": "2022-12-03T15:06:36.212959Z",
                                "user": null,
                                "category": {
                                    "id": 31,
                                    "parent_id": 30,
                                    "name": "Furniture - Tableware",
                                    "slug": "furniture-tableware",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 37,
                                    "rgt": 38,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 30,
                                        "parent_id": null,
                                        "name": "Furniture & Appliances",
                                        "slug": "furniture-appliances",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/couch.png",
                                        "icon_class": "fas fa-couch",
                                        "active": 1,
                                        "lft": 36,
                                        "rgt": 44,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-couch.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 45412,
                                    "country_code": "US",
                                    "name": "Sicklerville",
                                    "latitude": "39.72",
                                    "longitude": "-74.97",
                                    "subadmin1_code": "US.NJ",
                                    "subadmin2_code": "US.NJ.007",
                                    "population": 42891,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 114,
                                    "post_id": 114,
                                    "package_id": 2,
                                    "payment_method_id": 6,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 375,
                                        "post_id": 114,
                                        "filename": "files/us/114/e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/114/thumb-120x90-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/114/thumb-320x240-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-e80d2bbe9d3a865b2638d92a169d90ab.jpg"
                                        }
                                    },
                                    {
                                        "id": 374,
                                        "post_id": 114,
                                        "filename": "files/us/114/d4a2de89196ef0d63d0522df9011098a.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-d4a2de89196ef0d63d0522df9011098a.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/114/thumb-120x90-d4a2de89196ef0d63d0522df9011098a.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/114/thumb-320x240-d4a2de89196ef0d63d0522df9011098a.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-d4a2de89196ef0d63d0522df9011098a.jpg"
                                        }
                                    }
                                ],
                                "slug": "desks-black-color",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$53,459",
                                "count_pictures": 2,
                                "picture": {
                                    "filename": "files/us/114/e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/114/thumb-120x90-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/114/thumb-320x240-e80d2bbe9d3a865b2638d92a169d90ab.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/114/thumb-816x460-e80d2bbe9d3a865b2638d92a169d90ab.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 356,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 24,
                                "post_type_id": 2,
                                "title": "HP Envy x360 13 black color",
                                "description": "",
                                "tags": [],
                                "price": "5285.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46833,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:50:21.000000Z",
                                "phone_verified_at": "2022-11-14T01:50:21.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:50:21.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-10-19T14:45:26.000000Z",
                                "updated_at": "2022-12-03T15:06:36.246792Z",
                                "user": null,
                                "category": {
                                    "id": 24,
                                    "parent_id": 14,
                                    "name": "Photo & Video Cameras",
                                    "slug": "photo-video-cameras",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 28,
                                    "rgt": 29,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-laptop.png",
                                        "icon_class": "fas fa-laptop",
                                        "active": 1,
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-laptop.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 46833,
                                    "country_code": "US",
                                    "name": "Pekin",
                                    "latitude": "40.57",
                                    "longitude": "-89.64",
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.179",
                                    "population": 33223,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": {
                                    "id": 327,
                                    "post_id": 356,
                                    "package_id": 2,
                                    "payment_method_id": 4,
                                    "transaction_id": null,
                                    "amount": "7.50",
                                    "currency_code": null,
                                    "active": 1,
                                    "package": {
                                        "id": 2,
                                        "name": "Top page Listing",
                                        "short_name": "Premium",
                                        "ribbon": "orange",
                                        "has_badge": 1,
                                        "price": "7.50",
                                        "currency_code": "USD",
                                        "promo_duration": 7,
                                        "duration": 60,
                                        "pictures_limit": 10,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 1,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 4,
                                        "rgt": 5,
                                        "depth": 0,
                                        "description_array": [
                                            "7 days of promotion",
                                            "Up to 10 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 60 days"
                                        ],
                                        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 750,
                                        "post_id": 356,
                                        "filename": "files/us/356/531987e6dae5c4a90b572c9282685db7.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-531987e6dae5c4a90b572c9282685db7.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-531987e6dae5c4a90b572c9282685db7.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-531987e6dae5c4a90b572c9282685db7.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-531987e6dae5c4a90b572c9282685db7.jpg"
                                        }
                                    },
                                    {
                                        "id": 748,
                                        "post_id": 356,
                                        "filename": "files/us/356/7125317fc2699a4ebe00e42850b41a09.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-7125317fc2699a4ebe00e42850b41a09.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-7125317fc2699a4ebe00e42850b41a09.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-7125317fc2699a4ebe00e42850b41a09.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-7125317fc2699a4ebe00e42850b41a09.jpg"
                                        }
                                    },
                                    {
                                        "id": 751,
                                        "post_id": 356,
                                        "filename": "files/us/356/80710872d3a8d3a6b84e21dc54a43125.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-80710872d3a8d3a6b84e21dc54a43125.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-80710872d3a8d3a6b84e21dc54a43125.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-80710872d3a8d3a6b84e21dc54a43125.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-80710872d3a8d3a6b84e21dc54a43125.jpg"
                                        }
                                    },
                                    {
                                        "id": 749,
                                        "post_id": 356,
                                        "filename": "files/us/356/2bea88424c01eeae90fe98ccaaa8b6bd.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-2bea88424c01eeae90fe98ccaaa8b6bd.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-2bea88424c01eeae90fe98ccaaa8b6bd.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-2bea88424c01eeae90fe98ccaaa8b6bd.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-2bea88424c01eeae90fe98ccaaa8b6bd.jpg"
                                        }
                                    },
                                    {
                                        "id": 747,
                                        "post_id": 356,
                                        "filename": "files/us/356/7064fef419b7d883b505d02507b2a3ca.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-7064fef419b7d883b505d02507b2a3ca.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-7064fef419b7d883b505d02507b2a3ca.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-7064fef419b7d883b505d02507b2a3ca.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-7064fef419b7d883b505d02507b2a3ca.jpg"
                                        }
                                    }
                                ],
                                "slug": "hp-envy-x360-13-black-color",
                                "phone_intl": "",
                                "created_at_formatted": "1 month ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$5,285",
                                "count_pictures": 5,
                                "picture": {
                                    "filename": "files/us/356/531987e6dae5c4a90b572c9282685db7.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-531987e6dae5c4a90b572c9282685db7.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/356/thumb-120x90-531987e6dae5c4a90b572c9282685db7.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/356/thumb-320x240-531987e6dae5c4a90b572c9282685db7.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/356/thumb-816x460-531987e6dae5c4a90b572c9282685db7.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            }
                        ],
                        "totalPosts": 9
                    }
                },
                "view": "home.inc.featured",
                "getSponsoredPostsOp": {
                    "max_items": "20",
                    "order_by": "date",
                    "autoplay": "1",
                    "autoplay_timeout": null,
                    "cache_expiration": "3600",
                    "active": "1",
                    "items_in_carousel": "1"
                },
                "lft": 4
            },
            "getCategories": {
                "method": "getCategories",
                "data": {
                    "categories": {
                        "1": {
                            "id": 1,
                            "parent_id": null,
                            "name": "Automobiles",
                            "slug": "automobiles",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/car.png",
                            "icon_class": "fas fa-car",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 1,
                            "rgt": 10,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-car.png"
                        },
                        "9": {
                            "id": 9,
                            "parent_id": null,
                            "name": "Phones & Tablets",
                            "slug": "phones-and-tablets",
                            "description": "",
                            "hide_description": 0,
                            "picture": "app/categories/blue/mobile-alt.png",
                            "icon_class": "fas fa-mobile-alt",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 11,
                            "rgt": 17,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mobile-alt.png"
                        },
                        "14": {
                            "id": 14,
                            "parent_id": null,
                            "name": "Electronics",
                            "slug": "electronics",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/fa-laptop.png",
                            "icon_class": "fas fa-laptop",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 18,
                            "rgt": 35,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-laptop.png"
                        },
                        "30": {
                            "id": 30,
                            "parent_id": null,
                            "name": "Furniture & Appliances",
                            "slug": "furniture-appliances",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/couch.png",
                            "icon_class": "fas fa-couch",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 36,
                            "rgt": 44,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-couch.png"
                        },
                        "37": {
                            "id": 37,
                            "parent_id": null,
                            "name": "Real estate",
                            "slug": "real-estate",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/fa-home.png",
                            "icon_class": "fas fa-home",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 45,
                            "rgt": 55,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-home.png"
                        },
                        "46": {
                            "id": 46,
                            "parent_id": null,
                            "name": "Animals & Pets",
                            "slug": "animals-and-pets",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/paw.png",
                            "icon_class": "fas fa-paw",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 56,
                            "rgt": 65,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-paw.png"
                        },
                        "54": {
                            "id": 54,
                            "parent_id": null,
                            "name": "Fashion",
                            "slug": "fashion",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/tshirt.png",
                            "icon_class": "fas fa-tshirt",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 66,
                            "rgt": 75,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-tshirt.png"
                        },
                        "62": {
                            "id": 62,
                            "parent_id": null,
                            "name": "Beauty & Well being",
                            "slug": "beauty-well-being",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/spa.png",
                            "icon_class": "fas fa-spa",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 76,
                            "rgt": 88,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-spa.png"
                        },
                        "73": {
                            "id": 73,
                            "parent_id": null,
                            "name": "Jobs",
                            "slug": "jobs",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/mfglabs-users.png",
                            "icon_class": "fas fa-briefcase",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 89,
                            "rgt": 114,
                            "depth": 0,
                            "type": "job-offer",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mfglabs-users.png"
                        },
                        "97": {
                            "id": 97,
                            "parent_id": null,
                            "name": "Services",
                            "slug": "services",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/ion-clipboard.png",
                            "icon_class": "fas fa-clipboard-list",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 115,
                            "rgt": 133,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-ion-clipboard.png"
                        },
                        "114": {
                            "id": 114,
                            "parent_id": null,
                            "name": "Learning",
                            "slug": "learning",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/fa-graduation-cap.png",
                            "icon_class": "fas fa-graduation-cap",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 134,
                            "rgt": 143,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-graduation-cap.png"
                        },
                        "122": {
                            "id": 122,
                            "parent_id": null,
                            "name": "Local Events",
                            "slug": "local-events",
                            "description": "",
                            "hide_description": null,
                            "picture": "app/categories/blue/calendar-alt.png",
                            "icon_class": "far fa-calendar-alt",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 144,
                            "rgt": 158,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-calendar-alt.png"
                        }
                    },
                    "countPostsPerCat": []
                },
                "view": "home.inc.categories",
                "getCategoriesOp": {
                    "cat_display_type": "c_bigIcon_list",
                    "max_items": "12",
                    "max_sub_cats": "3",
                    "cache_expiration": "3600",
                    "hide_on_mobile": "0",
                    "active": "1",
                    "show_icon": "1"
                },
                "lft": 6
            },
            "getLatestPosts": {
                "method": "getLatestPosts",
                "data": {
                    "latest": {
                        "title": "<span style=\"font-weight: bold;\">Latest</span> Listings",
                        "link": "https://demo.laraclassifier.local/search",
                        "posts": [
                            {
                                "id": 10020,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 74,
                                "post_type_id": 1,
                                "title": "Create New Listing",
                                "description": "",
                                "tags": [],
                                "price": "2800.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 49443,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-28T08:51:13.000000Z",
                                "phone_verified_at": "2022-11-28T08:51:13.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-28T08:51:13.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-28T08:51:13.000000Z",
                                "updated_at": "2022-12-03T15:06:37.032233Z",
                                "user": null,
                                "category": {
                                    "id": 74,
                                    "parent_id": 73,
                                    "name": "Agriculture - Environment",
                                    "slug": "agriculture-environment",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 90,
                                    "rgt": 91,
                                    "depth": 1,
                                    "type": "job-offer",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 73,
                                        "parent_id": null,
                                        "name": "Jobs",
                                        "slug": "jobs",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/mfglabs-users.png",
                                        "icon_class": "fas fa-briefcase",
                                        "active": 1,
                                        "lft": 89,
                                        "rgt": 114,
                                        "depth": 0,
                                        "type": "job-offer",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mfglabs-users.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 49443,
                                    "country_code": "US",
                                    "name": "Los Angeles",
                                    "latitude": "34.05",
                                    "longitude": "-118.24",
                                    "subadmin1_code": "US.CA",
                                    "subadmin2_code": "US.CA.037",
                                    "population": 3971883,
                                    "time_zone": "America/Los_Angeles",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 15544,
                                        "post_id": 10020,
                                        "filename": "files/us/10020/1361170d442b56cd8fa0e3657a401048.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 0,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-1361170d442b56cd8fa0e3657a401048.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-120x90-1361170d442b56cd8fa0e3657a401048.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-320x240-1361170d442b56cd8fa0e3657a401048.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-1361170d442b56cd8fa0e3657a401048.jpg"
                                        }
                                    },
                                    {
                                        "id": 15545,
                                        "post_id": 10020,
                                        "filename": "files/us/10020/5668c568cd64b091af95fd5599dd7b4e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-5668c568cd64b091af95fd5599dd7b4e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-120x90-5668c568cd64b091af95fd5599dd7b4e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-320x240-5668c568cd64b091af95fd5599dd7b4e.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-5668c568cd64b091af95fd5599dd7b4e.jpg"
                                        }
                                    }
                                ],
                                "slug": "create-new-listing",
                                "phone_intl": "",
                                "created_at_formatted": "5 days ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Salary:",
                                "price_formatted": "$2,800",
                                "count_pictures": 2,
                                "picture": {
                                    "filename": "files/us/10020/1361170d442b56cd8fa0e3657a401048.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-1361170d442b56cd8fa0e3657a401048.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-120x90-1361170d442b56cd8fa0e3657a401048.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-320x240-1361170d442b56cd8fa0e3657a401048.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/10020/thumb-816x460-1361170d442b56cd8fa0e3657a401048.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 6408,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 34,
                                "post_type_id": 1,
                                "title": "Test sell Popcorn maker",
                                "description": "",
                                "tags": [],
                                "price": "46686.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 43787,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:53:40.000000Z",
                                "phone_verified_at": "2022-11-14T01:53:40.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:53:40.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-14T00:05:32.000000Z",
                                "updated_at": "2022-12-03T15:06:37.068423Z",
                                "user": null,
                                "category": {
                                    "id": 34,
                                    "parent_id": 30,
                                    "name": "Garden",
                                    "slug": "garden",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 40,
                                    "rgt": 41,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 30,
                                        "parent_id": null,
                                        "name": "Furniture & Appliances",
                                        "slug": "furniture-appliances",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/couch.png",
                                        "icon_class": "fas fa-couch",
                                        "active": 1,
                                        "lft": 36,
                                        "rgt": 44,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-couch.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 43787,
                                    "country_code": "US",
                                    "name": "Bear",
                                    "latitude": "39.63",
                                    "longitude": "-75.66",
                                    "subadmin1_code": "US.DE",
                                    "subadmin2_code": "US.DE.003",
                                    "population": 19371,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 10044,
                                        "post_id": 6408,
                                        "filename": "files/us/6408/3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-120x90-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-320x240-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-3bacf9b3e347d7e0f00a7d26115232ce.jpg"
                                        }
                                    },
                                    {
                                        "id": 10043,
                                        "post_id": 6408,
                                        "filename": "files/us/6408/ac5df407b85861970cba89bf2259bb80.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-ac5df407b85861970cba89bf2259bb80.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-120x90-ac5df407b85861970cba89bf2259bb80.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-320x240-ac5df407b85861970cba89bf2259bb80.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-ac5df407b85861970cba89bf2259bb80.jpg"
                                        }
                                    }
                                ],
                                "slug": "test-sell-popcorn-maker",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$46,686",
                                "count_pictures": 2,
                                "picture": {
                                    "filename": "files/us/6408/3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-120x90-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-320x240-3bacf9b3e347d7e0f00a7d26115232ce.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/6408/thumb-816x460-3bacf9b3e347d7e0f00a7d26115232ce.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 3337,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 36,
                                "post_type_id": 2,
                                "title": "For sale: Tandoor",
                                "description": "",
                                "tags": [],
                                "price": "4.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48856,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:51:28.000000Z",
                                "phone_verified_at": "2022-11-14T01:51:28.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:51:28.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T23:36:52.000000Z",
                                "updated_at": "2022-12-03T15:06:37.104768Z",
                                "user": null,
                                "category": {
                                    "id": 36,
                                    "parent_id": 30,
                                    "name": "Wine & Gourmet - Recipes",
                                    "slug": "wine-gourmet-recipes",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 42,
                                    "rgt": 43,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 30,
                                        "parent_id": null,
                                        "name": "Furniture & Appliances",
                                        "slug": "furniture-appliances",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/couch.png",
                                        "icon_class": "fas fa-couch",
                                        "active": 1,
                                        "lft": 36,
                                        "rgt": 44,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-couch.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 48856,
                                    "country_code": "US",
                                    "name": "Warren",
                                    "latitude": "41.73",
                                    "longitude": "-71.28",
                                    "subadmin1_code": "US.RI",
                                    "subadmin2_code": "US.RI.001",
                                    "population": 11280,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 5316,
                                        "post_id": 3337,
                                        "filename": "files/us/3337/6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-120x90-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-320x240-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-6ad4253543b02f48fbd66e8f0ac046c6.jpg"
                                        }
                                    },
                                    {
                                        "id": 5317,
                                        "post_id": 3337,
                                        "filename": "files/us/3337/136cd1ac8e8fa154c8fde8a7384c7ad2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-136cd1ac8e8fa154c8fde8a7384c7ad2.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-120x90-136cd1ac8e8fa154c8fde8a7384c7ad2.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-320x240-136cd1ac8e8fa154c8fde8a7384c7ad2.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-136cd1ac8e8fa154c8fde8a7384c7ad2.jpg"
                                        }
                                    },
                                    {
                                        "id": 5315,
                                        "post_id": 3337,
                                        "filename": "files/us/3337/c1df3a99a24b5bb21eef0b423c494b5a.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-c1df3a99a24b5bb21eef0b423c494b5a.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-120x90-c1df3a99a24b5bb21eef0b423c494b5a.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-320x240-c1df3a99a24b5bb21eef0b423c494b5a.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-c1df3a99a24b5bb21eef0b423c494b5a.jpg"
                                        }
                                    }
                                ],
                                "slug": "for-sale-tandoor",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$4",
                                "count_pictures": 3,
                                "picture": {
                                    "filename": "files/us/3337/6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-120x90-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-320x240-6ad4253543b02f48fbd66e8f0ac046c6.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/3337/thumb-816x460-6ad4253543b02f48fbd66e8f0ac046c6.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 8978,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 70,
                                "post_type_id": 2,
                                "title": "Nihil vel error impedit est pariatur aut ducimus",
                                "description": "",
                                "tags": [],
                                "price": "31433.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48092,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:56:21.000000Z",
                                "phone_verified_at": "2022-11-14T01:56:21.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:56:21.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T23:15:01.000000Z",
                                "updated_at": "2022-12-03T15:06:37.140484Z",
                                "user": null,
                                "category": {
                                    "id": 70,
                                    "parent_id": 62,
                                    "name": "Tools & Accessories",
                                    "slug": "tools-and-accessories",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 84,
                                    "rgt": 85,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 62,
                                        "parent_id": null,
                                        "name": "Beauty & Well being",
                                        "slug": "beauty-well-being",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/spa.png",
                                        "icon_class": "fas fa-spa",
                                        "active": 1,
                                        "lft": 76,
                                        "rgt": 88,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-spa.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 48092,
                                    "country_code": "US",
                                    "name": "Greenburgh",
                                    "latitude": "41.03",
                                    "longitude": "-73.84",
                                    "subadmin1_code": "US.NY",
                                    "subadmin2_code": "US.NY.119",
                                    "population": 86764,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 13962,
                                        "post_id": 8978,
                                        "filename": "files/us/8978/8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-120x90-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-320x240-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-8270ffbdf67f7fcee5ba9e099ac26eee.jpg"
                                        }
                                    },
                                    {
                                        "id": 13961,
                                        "post_id": 8978,
                                        "filename": "files/us/8978/80c7a1192109054b4dea8fd6c08c7399.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-80c7a1192109054b4dea8fd6c08c7399.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-120x90-80c7a1192109054b4dea8fd6c08c7399.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-320x240-80c7a1192109054b4dea8fd6c08c7399.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-80c7a1192109054b4dea8fd6c08c7399.jpg"
                                        }
                                    }
                                ],
                                "slug": "nihil-vel-error-impedit-est-pariatur-aut-ducimus",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$31,433",
                                "count_pictures": 2,
                                "picture": {
                                    "filename": "files/us/8978/8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-120x90-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-320x240-8270ffbdf67f7fcee5ba9e099ac26eee.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/8978/thumb-816x460-8270ffbdf67f7fcee5ba9e099ac26eee.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 901,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 50,
                                "post_type_id": 1,
                                "title": "Available: Lardouge Sheeps for Sale",
                                "description": "",
                                "tags": [],
                                "price": "1971.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48344,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:50:33.000000Z",
                                "phone_verified_at": "2022-11-14T01:50:33.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:50:33.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T21:13:56.000000Z",
                                "updated_at": "2022-12-03T15:06:37.175792Z",
                                "user": null,
                                "category": {
                                    "id": 50,
                                    "parent_id": 46,
                                    "name": "Fish",
                                    "slug": "fish",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 60,
                                    "rgt": 61,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 46,
                                        "parent_id": null,
                                        "name": "Animals & Pets",
                                        "slug": "animals-and-pets",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/paw.png",
                                        "icon_class": "fas fa-paw",
                                        "active": 1,
                                        "lft": 56,
                                        "rgt": 65,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-paw.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 48344,
                                    "country_code": "US",
                                    "name": "Staten Island",
                                    "latitude": "40.56",
                                    "longitude": "-74.14",
                                    "subadmin1_code": "US.NY",
                                    "subadmin2_code": "US.NY.085",
                                    "population": 468730,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 1591,
                                        "post_id": 901,
                                        "filename": "files/us/901/e3c0f6996662aec95b821a6e81eff613.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/901/thumb-816x460-e3c0f6996662aec95b821a6e81eff613.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/901/thumb-120x90-e3c0f6996662aec95b821a6e81eff613.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/901/thumb-320x240-e3c0f6996662aec95b821a6e81eff613.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/901/thumb-816x460-e3c0f6996662aec95b821a6e81eff613.jpg"
                                        }
                                    }
                                ],
                                "slug": "available-lardouge-sheeps-for-sale",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$1,971",
                                "count_pictures": 1,
                                "picture": {
                                    "filename": "files/us/901/e3c0f6996662aec95b821a6e81eff613.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/901/thumb-816x460-e3c0f6996662aec95b821a6e81eff613.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/901/thumb-120x90-e3c0f6996662aec95b821a6e81eff613.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/901/thumb-320x240-e3c0f6996662aec95b821a6e81eff613.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/901/thumb-816x460-e3c0f6996662aec95b821a6e81eff613.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 183,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 24,
                                "post_type_id": 1,
                                "title": "Lenovo ThinkPad X1 Yoga (5th Gen, 2020)",
                                "description": "",
                                "tags": [],
                                "price": "5172.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48333,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:50:17.000000Z",
                                "phone_verified_at": "2022-11-14T01:50:17.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:50:17.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T17:12:45.000000Z",
                                "updated_at": "2022-12-03T15:06:37.211411Z",
                                "user": null,
                                "category": {
                                    "id": 24,
                                    "parent_id": 14,
                                    "name": "Photo & Video Cameras",
                                    "slug": "photo-video-cameras",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 28,
                                    "rgt": 29,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/fa-laptop.png",
                                        "icon_class": "fas fa-laptop",
                                        "active": 1,
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-fa-laptop.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 48333,
                                    "country_code": "US",
                                    "name": "South Huntington",
                                    "latitude": "40.82",
                                    "longitude": "-73.4",
                                    "subadmin1_code": "US.NY",
                                    "subadmin2_code": "US.NY.103",
                                    "population": 9422,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 487,
                                        "post_id": 183,
                                        "filename": "files/us/183/94864ff60dddebb1333ce6e59f477509.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-94864ff60dddebb1333ce6e59f477509.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/183/thumb-120x90-94864ff60dddebb1333ce6e59f477509.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/183/thumb-320x240-94864ff60dddebb1333ce6e59f477509.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-94864ff60dddebb1333ce6e59f477509.jpg"
                                        }
                                    },
                                    {
                                        "id": 488,
                                        "post_id": 183,
                                        "filename": "files/us/183/2f3e72889ca4abbd9a5f612aaeeeb1ed.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-2f3e72889ca4abbd9a5f612aaeeeb1ed.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/183/thumb-120x90-2f3e72889ca4abbd9a5f612aaeeeb1ed.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/183/thumb-320x240-2f3e72889ca4abbd9a5f612aaeeeb1ed.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-2f3e72889ca4abbd9a5f612aaeeeb1ed.jpg"
                                        }
                                    },
                                    {
                                        "id": 486,
                                        "post_id": 183,
                                        "filename": "files/us/183/c7af0beb878e76c489a53cd9e6e0bd5e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-c7af0beb878e76c489a53cd9e6e0bd5e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/183/thumb-120x90-c7af0beb878e76c489a53cd9e6e0bd5e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/183/thumb-320x240-c7af0beb878e76c489a53cd9e6e0bd5e.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-c7af0beb878e76c489a53cd9e6e0bd5e.jpg"
                                        }
                                    },
                                    {
                                        "id": 485,
                                        "post_id": 183,
                                        "filename": "files/us/183/a3c223434dfa1095ba962c5bc914f39f.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-a3c223434dfa1095ba962c5bc914f39f.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/183/thumb-120x90-a3c223434dfa1095ba962c5bc914f39f.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/183/thumb-320x240-a3c223434dfa1095ba962c5bc914f39f.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-a3c223434dfa1095ba962c5bc914f39f.jpg"
                                        }
                                    }
                                ],
                                "slug": "lenovo-thinkpad-x1-yoga-5th-gen-2020",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$5,172",
                                "count_pictures": 4,
                                "picture": {
                                    "filename": "files/us/183/94864ff60dddebb1333ce6e59f477509.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-94864ff60dddebb1333ce6e59f477509.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/183/thumb-120x90-94864ff60dddebb1333ce6e59f477509.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/183/thumb-320x240-94864ff60dddebb1333ce6e59f477509.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/183/thumb-816x460-94864ff60dddebb1333ce6e59f477509.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 65,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 76,
                                "post_type_id": 2,
                                "title": "Speech Pathologist 1 year of experience",
                                "description": "",
                                "tags": [],
                                "price": "10930.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 43948,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:49:48.000000Z",
                                "phone_verified_at": "2022-11-14T01:49:48.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:49:48.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T14:38:32.000000Z",
                                "updated_at": "2022-12-03T15:06:37.248712Z",
                                "user": null,
                                "category": {
                                    "id": 76,
                                    "parent_id": 73,
                                    "name": "Automotive - Mechanic",
                                    "slug": "automotive-mechanic",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 92,
                                    "rgt": 93,
                                    "depth": 1,
                                    "type": "job-offer",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 73,
                                        "parent_id": null,
                                        "name": "Jobs",
                                        "slug": "jobs",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/mfglabs-users.png",
                                        "icon_class": "fas fa-briefcase",
                                        "active": 1,
                                        "lft": 89,
                                        "rgt": 114,
                                        "depth": 0,
                                        "type": "job-offer",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-mfglabs-users.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "Professional",
                                    "active": 1
                                },
                                "city": {
                                    "id": 43948,
                                    "country_code": "US",
                                    "name": "Haines City",
                                    "latitude": "28.11",
                                    "longitude": "-81.62",
                                    "subadmin1_code": "US.FL",
                                    "subadmin2_code": "US.FL.105",
                                    "population": 22807,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 209,
                                        "post_id": 65,
                                        "filename": "files/us/65/34d5b481439a3f05b29b62b3198aacf2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/65/thumb-120x90-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/65/thumb-320x240-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-34d5b481439a3f05b29b62b3198aacf2.jpg"
                                        }
                                    },
                                    {
                                        "id": 207,
                                        "post_id": 65,
                                        "filename": "files/us/65/f1aaca4d6fb0cce97429d12634d401fe.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-f1aaca4d6fb0cce97429d12634d401fe.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/65/thumb-120x90-f1aaca4d6fb0cce97429d12634d401fe.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/65/thumb-320x240-f1aaca4d6fb0cce97429d12634d401fe.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-f1aaca4d6fb0cce97429d12634d401fe.jpg"
                                        }
                                    },
                                    {
                                        "id": 210,
                                        "post_id": 65,
                                        "filename": "files/us/65/f0c41ce09b071cc509ab627d59c3187a.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-f0c41ce09b071cc509ab627d59c3187a.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/65/thumb-120x90-f0c41ce09b071cc509ab627d59c3187a.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/65/thumb-320x240-f0c41ce09b071cc509ab627d59c3187a.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-f0c41ce09b071cc509ab627d59c3187a.jpg"
                                        }
                                    },
                                    {
                                        "id": 208,
                                        "post_id": 65,
                                        "filename": "files/us/65/8ccbb411a6ac5472186b7a823a6c9f1a.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-8ccbb411a6ac5472186b7a823a6c9f1a.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/65/thumb-120x90-8ccbb411a6ac5472186b7a823a6c9f1a.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/65/thumb-320x240-8ccbb411a6ac5472186b7a823a6c9f1a.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-8ccbb411a6ac5472186b7a823a6c9f1a.jpg"
                                        }
                                    }
                                ],
                                "slug": "speech-pathologist-1-year-of-experience",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Salary:",
                                "price_formatted": "$10,930",
                                "count_pictures": 4,
                                "picture": {
                                    "filename": "files/us/65/34d5b481439a3f05b29b62b3198aacf2.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/65/thumb-120x90-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/65/thumb-320x240-34d5b481439a3f05b29b62b3198aacf2.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/65/thumb-816x460-34d5b481439a3f05b29b62b3198aacf2.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 1054,
                                "country_code": "US",
                                "user_id": null,
                                "category_id": 53,
                                "post_type_id": 1,
                                "title": "Parrots available",
                                "description": "",
                                "tags": [],
                                "price": "426.00",
                                "negotiable": 1,
                                "contact_name": null,
                                "auth_field": null,
                                "email": null,
                                "phone": "",
                                "phone_national": "",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46002,
                                "lat": null,
                                "lon": null,
                                "ip_addr": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2022-11-14T01:50:37.000000Z",
                                "phone_verified_at": "2022-11-14T01:50:37.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2022-11-14T01:50:37.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2022-11-13T11:32:51.000000Z",
                                "updated_at": "2022-12-03T15:06:37.283517Z",
                                "user": null,
                                "category": {
                                    "id": 53,
                                    "parent_id": 46,
                                    "name": "Other Animals",
                                    "slug": "other-animals",
                                    "description": "",
                                    "hide_description": null,
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "picture": "app/default/categories/fa-folder-blue.png",
                                    "icon_class": "fas fa-folder",
                                    "active": 1,
                                    "lft": 63,
                                    "rgt": 64,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "parent": {
                                        "id": 46,
                                        "parent_id": null,
                                        "name": "Animals & Pets",
                                        "slug": "animals-and-pets",
                                        "description": "",
                                        "hide_description": null,
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "picture": "app/categories/blue/paw.png",
                                        "icon_class": "fas fa-paw",
                                        "active": 1,
                                        "lft": 56,
                                        "rgt": 65,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "parent": null,
                                        "picture_url": "https://demo.laraclassifier.local/storage/app/categories/blue/thumb-70x70-paw.png"
                                    },
                                    "picture_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumb-70x70-fa-folder-blue.png"
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "Private individual",
                                    "active": 1
                                },
                                "city": {
                                    "id": 46002,
                                    "country_code": "US",
                                    "name": "Haltom City",
                                    "latitude": "32.8",
                                    "longitude": "-97.27",
                                    "subadmin1_code": "US.TX",
                                    "subadmin2_code": "US.TX.439",
                                    "population": 44206,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "latestPayment": null,
                                "savedByLoggedUser": [],
                                "pictures": [
                                    {
                                        "id": 1822,
                                        "post_id": 1054,
                                        "filename": "files/us/1054/c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg"
                                        }
                                    },
                                    {
                                        "id": 1820,
                                        "post_id": 1054,
                                        "filename": "files/us/1054/0c5681566cf85187c69cd392ccd1c61c.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-0c5681566cf85187c69cd392ccd1c61c.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-0c5681566cf85187c69cd392ccd1c61c.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-0c5681566cf85187c69cd392ccd1c61c.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-0c5681566cf85187c69cd392ccd1c61c.jpg"
                                        }
                                    },
                                    {
                                        "id": 1823,
                                        "post_id": 1054,
                                        "filename": "files/us/1054/cd530bec80091eda3b28509609682a14.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-cd530bec80091eda3b28509609682a14.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-cd530bec80091eda3b28509609682a14.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-cd530bec80091eda3b28509609682a14.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-cd530bec80091eda3b28509609682a14.jpg"
                                        }
                                    },
                                    {
                                        "id": 1819,
                                        "post_id": 1054,
                                        "filename": "files/us/1054/536a304442eceaed8da64e4124626823.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-536a304442eceaed8da64e4124626823.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-536a304442eceaed8da64e4124626823.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-536a304442eceaed8da64e4124626823.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-536a304442eceaed8da64e4124626823.jpg"
                                        }
                                    },
                                    {
                                        "id": 1821,
                                        "post_id": 1054,
                                        "filename": "files/us/1054/7d8afa0a062d699e18fd98329f589b42.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-7d8afa0a062d699e18fd98329f589b42.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-7d8afa0a062d699e18fd98329f589b42.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-7d8afa0a062d699e18fd98329f589b42.jpg",
                                            "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-7d8afa0a062d699e18fd98329f589b42.jpg"
                                        }
                                    }
                                ],
                                "slug": "parrots-available",
                                "phone_intl": "",
                                "created_at_formatted": "2 weeks ago",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$426",
                                "count_pictures": 5,
                                "picture": {
                                    "filename": "files/us/1054/c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-120x90-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-320x240-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg",
                                        "big": "https://demo.laraclassifier.local/storage/files/us/1054/thumb-816x460-c1dcf030fc1b93ce2c8d28ee6ae6670e.jpg"
                                    }
                                },
                                "rating_cache": 0,
                                "rating_count": 0
                            }
                        ],
                        "totalPosts": 275
                    }
                },
                "view": "home.inc.latest",
                "getLatestPostsOp": {
                    "max_items": "8",
                    "show_view_more_btn": "1"
                },
                "lft": 8
            },
            "getStats": {
                "method": "getStats",
                "data": {
                    "count": {
                        "posts": 275,
                        "users": 3317,
                        "locations": 7200
                    }
                },
                "view": "home.inc.stats",
                "getStatsOp": {
                    "icon_count_listings": "fas fa-bullhorn",
                    "icon_count_users": "fas fa-users",
                    "icon_count_locations": "far fa-map",
                    "counter_up_delay": 10,
                    "counter_up_time": 2000
                },
                "lft": 10
            }
        }
    }
}
 

Request      

GET api/homeSections

Get section

Get category by its unique slug or ID.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/homeSections/getCategories?parentCatSlug=automobiles" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/homeSections/getCategories"
);

const params = {
    "parentCatSlug": "automobiles",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/homeSections/getCategories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentCatSlug'=> 'automobiles',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "method": "getCategories",
        "data": null,
        "view": "home.inc.categories",
        "getCategoriesOp": {
            "cat_display_type": "c_bigIcon_list",
            "max_items": "12",
            "max_sub_cats": "3",
            "cache_expiration": "3600",
            "hide_on_mobile": "0",
            "active": "1",
            "show_icon": "1"
        },
        "lft": 6
    }
}
 

Request      

GET api/homeSections/{method}

URL Parameters

method  string  

The key/method of the section.

Query Parameters

parentCatSlug  string optional  

The slug of the parent category to retrieve used when category's slug provided instead of ID.

Languages

List languages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/languages" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/languages"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/languages',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "abbr": "en",
                "locale": "en_US",
                "name": "English",
                "native": "English",
                "flag": "flag-icon-gb",
                "app_name": "english",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "MMM Do, YYYY",
                "datetime_format": "MMM Do, YYYY [at] HH:mm",
                "active": 1,
                "default": 1,
                "parent_id": null,
                "lft": 2,
                "rgt": 3,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "fr",
                "locale": "fr_FR",
                "name": "French",
                "native": "Français",
                "flag": "flag-icon-fr",
                "app_name": "french",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "Do MMM YYYY",
                "datetime_format": "Do MMM YYYY [à] H[h]mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 4,
                "rgt": 5,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "es",
                "locale": "es_ES",
                "name": "Spanish",
                "native": "Español",
                "flag": "flag-icon-es",
                "app_name": "spanish",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D [de] MMMM [de] YYYY",
                "datetime_format": "D [de] MMMM [de] YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 6,
                "rgt": 7,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "ar",
                "locale": "ar_SA",
                "name": "Arabic",
                "native": "العربية",
                "flag": "flag-icon-sa",
                "app_name": "arabic",
                "script": "Arab",
                "direction": "rtl",
                "russian_pluralization": 0,
                "date_format": "DD/MMMM/YYYY",
                "datetime_format": "DD/MMMM/YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 8,
                "rgt": 9,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "pt",
                "locale": "pt_PT",
                "name": "Portuguese",
                "native": "Português",
                "flag": "flag-icon-pt",
                "app_name": "portuguese",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D [de] MMMM [de] YYYY",
                "datetime_format": "D [de] MMMM [de] YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 10,
                "rgt": 11,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "de",
                "locale": "de_DE",
                "name": "German",
                "native": "Deutsch",
                "flag": "flag-icon-de",
                "app_name": "german",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "dddd, D. MMMM YYYY",
                "datetime_format": "dddd, D. MMMM YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 12,
                "rgt": 13,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "it",
                "locale": "it_IT",
                "name": "Italian",
                "native": "Italiano",
                "flag": "flag-icon-it",
                "app_name": "italian",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 14,
                "rgt": 15,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "tr",
                "locale": "tr_TR",
                "name": "Turkish",
                "native": "Türkçe",
                "flag": "flag-icon-tr",
                "app_name": "turkish",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "DD MMMM YYYY dddd",
                "datetime_format": "DD MMMM YYYY dddd HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 16,
                "rgt": 17,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "ru",
                "locale": "ru_RU",
                "name": "Russian",
                "native": "Русский",
                "flag": "flag-icon-ru",
                "app_name": "russian",
                "script": "Cyrl",
                "direction": "ltr",
                "russian_pluralization": 1,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY [ г.] H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 18,
                "rgt": 19,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "hi",
                "locale": "hi_IN",
                "name": "Hindi",
                "native": "हिन्दी",
                "flag": "flag-icon-in",
                "app_name": "hindi",
                "script": "Devanagari",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 20,
                "rgt": 21,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "bn",
                "locale": "bn_BD",
                "name": "Bengali",
                "native": "বাংলা",
                "flag": "flag-icon-bd",
                "app_name": "bengali",
                "script": "Brahmic",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H.mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 22,
                "rgt": 23,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "zh",
                "locale": "zh_CN",
                "name": "Simplified Chinese",
                "native": "简体中文",
                "flag": "flag-icon-cn",
                "app_name": "chinese",
                "script": "Hans",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 24,
                "rgt": 25,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "ja",
                "locale": "ja_JP",
                "name": "Japanese",
                "native": "日本語",
                "flag": "flag-icon-jp",
                "app_name": "japanese",
                "script": "Jpan",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 26,
                "rgt": 27,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "th",
                "locale": "th_TH",
                "name": "Thai",
                "native": "ไทย",
                "flag": "flag-icon-th",
                "app_name": "thai",
                "script": "Thai",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 28,
                "rgt": 29,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "ro",
                "locale": "ro_RO",
                "name": "Romanian",
                "native": "Română",
                "flag": "flag-icon-ro",
                "app_name": "romanian",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 30,
                "rgt": 31,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            },
            {
                "abbr": "ka",
                "locale": "ka_GE",
                "name": "Georgian",
                "native": "ქართული",
                "flag": "flag-icon-ge",
                "app_name": "georgian",
                "script": "Geor",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "YYYY [წლის] DD MM",
                "datetime_format": "YYYY [წლის] DD MMMM, dddd H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 32,
                "rgt": 33,
                "depth": 1,
                "created_at": "2022-11-14 01:48:35",
                "updated_at": "2022-11-14 01:48:35"
            }
        ]
    }
}
 

Request      

GET api/languages

Get language

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/languages/en" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/languages/en"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/languages/en',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "abbr": "en",
        "locale": "en_US",
        "name": "English",
        "native": "English",
        "flag": "flag-icon-gb",
        "app_name": "english",
        "script": "Latn",
        "direction": "ltr",
        "russian_pluralization": 0,
        "date_format": "MMM Do, YYYY",
        "datetime_format": "MMM Do, YYYY [at] HH:mm",
        "active": 1,
        "default": 1,
        "parent_id": null,
        "lft": 2,
        "rgt": 3,
        "depth": 1,
        "created_at": "2022-11-14 01:48:35",
        "updated_at": "2022-11-14 01:48:35"
    }
}
 

Request      

GET api/languages/{code}

URL Parameters

code  string  

The language's code.

Listings

List listing types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/postTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/postTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/postTypes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Private individual",
                "active": 1
            },
            {
                "id": 2,
                "name": "Professional",
                "active": 1
            }
        ]
    }
}
 

Request      

GET api/postTypes

Get listing type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/postTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/postTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/postTypes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "Private individual",
        "active": 1
    }
}
 

Request      

GET api/postTypes/{id}

URL Parameters

id  integer  

The listing type's ID.

List report types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/reportTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/reportTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/reportTypes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Fraud"
            },
            {
                "id": 2,
                "name": "Duplicate"
            },
            {
                "id": 3,
                "name": "Spam"
            },
            {
                "id": 4,
                "name": "Wrong category"
            },
            {
                "id": 5,
                "name": "Other"
            }
        ]
    }
}
 

Request      

GET api/reportTypes

Get report type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/reportTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/reportTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/reportTypes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "Fraud"
    }
}
 

Request      

GET api/reportTypes/{id}

URL Parameters

id  integer  

The report type's ID.

List listings

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts?op=null&postId=0&distance=0&belongLoggedUser=1&pendingApproval=&archived=&embed=null&sort=created_at&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts"
);

const params = {
    "op": "null",
    "postId": "0",
    "distance": "0",
    "belongLoggedUser": "1",
    "pendingApproval": "0",
    "archived": "0",
    "embed": "null",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'op'=> 'null',
            'postId'=> '0',
            'distance'=> '0',
            'belongLoggedUser'=> '1',
            'pendingApproval'=> '0',
            'archived'=> '0',
            'embed'=> 'null',
            'sort'=> 'created_at',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unknown Error.",
    "result": null,
    "exception": {
        "message": "",
        "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
        "line": 1151,
        "code": 0,
        "trace": [
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php",
                "line": 45,
                "function": "abort",
                "class": "Illuminate\\Foundation\\Application",
                "type": "->",
                "args": [
                    401,
                    "",
                    []
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Controllers/Api/Post/SearchTrait.php",
                "line": 158,
                "function": "abort",
                "args": [
                    401
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Controllers/Api/Post/SearchTrait.php",
                "line": 113,
                "function": "normalQuery",
                "class": "App\\Http\\Controllers\\Api\\PostController",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Controllers/Api/PostController.php",
                "line": 88,
                "function": "getPosts",
                "class": "App\\Http\\Controllers\\Api\\PostController",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
                "line": 54,
                "function": "index",
                "class": "App\\Http\\Controllers\\Api\\PostController",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
                "line": 43,
                "function": "callAction",
                "class": "Illuminate\\Routing\\Controller",
                "type": "->",
                "args": [
                    "index",
                    []
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
                "line": 260,
                "function": "dispatch",
                "class": "Illuminate\\Routing\\ControllerDispatcher",
                "type": "->",
                "args": [
                    {
                        "uri": "api/posts",
                        "methods": [
                            "GET",
                            "HEAD"
                        ],
                        "action": {
                            "middleware": [
                                "api"
                            ],
                            "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                            "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                            "namespace": "App\\Http\\Controllers\\Api",
                            "prefix": "api/posts",
                            "where": [],
                            "as": "posts.index"
                        },
                        "isFallback": false,
                        "controller": {
                            "locale": null,
                            "countryCode": null,
                            "messages": [],
                            "errors": [],
                            "cacheExpiration": 86400,
                            "perPage": 2,
                            "disk": {},
                            "cookieExpiration": 86400,
                            "entitiesRefs": {
                                "users": {
                                    "slug": "users",
                                    "namespace": "\\App\\Models\\User",
                                    "name": "name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope"
                                    ]
                                },
                                "posts": {
                                    "slug": "posts",
                                    "namespace": "\\App\\Models\\Post",
                                    "name": "contact_name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope",
                                        "App\\Models\\Scopes\\ReviewedScope"
                                    ]
                                },
                                "password": {
                                    "slug": "password",
                                    "namespace": "\\App\\Models\\PasswordReset",
                                    "name": null,
                                    "scopes": []
                                }
                            },
                            "apiMsg": [],
                            "apiUri": [],
                            "selectedPackage": null,
                            "packages": null,
                            "paymentMethods": null,
                            "latestPayment": {
                                "currentPaymentIsActive": 0,
                                "currentPaymentMethodId": 0,
                                "currentPackageId": 0,
                                "currentPackagePrice": 0,
                                "currentPackagePicturesLimit": 0
                            }
                        },
                        "defaults": [],
                        "wheres": {
                            "userId": "[0-9]+",
                            "provider": "facebook|linkedin|google",
                            "field": "email|phone",
                            "token": ".*",
                            "id": "[0-9]+",
                            "slugOrId": "[^/]+",
                            "code": "[^/]+",
                            "countryCode": "[a-zA-Z]{2}"
                        },
                        "parameters": [],
                        "parameterNames": [],
                        "computedMiddleware": [
                            "api",
                            {}
                        ],
                        "compiled": {}
                    },
                    {
                        "locale": null,
                        "countryCode": null,
                        "messages": [],
                        "errors": [],
                        "cacheExpiration": 86400,
                        "perPage": 2,
                        "disk": {},
                        "cookieExpiration": 86400,
                        "entitiesRefs": {
                            "users": {
                                "slug": "users",
                                "namespace": "\\App\\Models\\User",
                                "name": "name",
                                "scopes": [
                                    "App\\Models\\Scopes\\VerifiedScope"
                                ]
                            },
                            "posts": {
                                "slug": "posts",
                                "namespace": "\\App\\Models\\Post",
                                "name": "contact_name",
                                "scopes": [
                                    "App\\Models\\Scopes\\VerifiedScope",
                                    "App\\Models\\Scopes\\ReviewedScope"
                                ]
                            },
                            "password": {
                                "slug": "password",
                                "namespace": "\\App\\Models\\PasswordReset",
                                "name": null,
                                "scopes": []
                            }
                        },
                        "apiMsg": [],
                        "apiUri": [],
                        "selectedPackage": null,
                        "packages": null,
                        "paymentMethods": null,
                        "latestPayment": {
                            "currentPaymentIsActive": 0,
                            "currentPaymentMethodId": 0,
                            "currentPackageId": 0,
                            "currentPackagePrice": 0,
                            "currentPackagePicturesLimit": 0
                        }
                    },
                    "index"
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
                "line": 205,
                "function": "runController",
                "class": "Illuminate\\Routing\\Route",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
                "line": 727,
                "function": "run",
                "class": "Illuminate\\Routing\\Route",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 141,
                "function": "Illuminate\\Routing\\{closure}",
                "class": "Illuminate\\Routing\\Router",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Controllers/Api/PostController.php",
                "line": 65,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 162,
                "function": "App\\Http\\Controllers\\Api\\{closure}",
                "class": "App\\Http\\Controllers\\Api\\PostController",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/LastUserActivity.php",
                "line": 49,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\LastUserActivity",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/DemoRestriction.php",
                "line": 34,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\DemoRestriction",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/IsVerifiedUser.php",
                "line": 40,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\IsVerifiedUser",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/RequirementsChecker.php",
                "line": 47,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\RequirementsChecker",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
                "line": 50,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
                "line": 89,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
                "line": 54,
                "function": "handleRequestUsingNamedLimiter",
                "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {},
                    "api",
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {},
                    "api"
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
                "line": 33,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 141,
                "function": "Laravel\\Sanctum\\Http\\Middleware\\{closure}",
                "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 116,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
                "line": 34,
                "function": "then",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/VerifyAPIAccess.php",
                "line": 49,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\VerifyAPIAccess",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/InstallationChecker.php",
                "line": 88,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/InstallationChecker.php",
                "line": 42,
                "function": "handleApi",
                "class": "App\\Http\\Middleware\\InstallationChecker",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\InstallationChecker",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 116,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
                "line": 728,
                "function": "then",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
                "line": 705,
                "function": "runRouteWithinStack",
                "class": "Illuminate\\Routing\\Router",
                "type": "->",
                "args": [
                    {
                        "uri": "api/posts",
                        "methods": [
                            "GET",
                            "HEAD"
                        ],
                        "action": {
                            "middleware": [
                                "api"
                            ],
                            "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                            "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                            "namespace": "App\\Http\\Controllers\\Api",
                            "prefix": "api/posts",
                            "where": [],
                            "as": "posts.index"
                        },
                        "isFallback": false,
                        "controller": {
                            "locale": null,
                            "countryCode": null,
                            "messages": [],
                            "errors": [],
                            "cacheExpiration": 86400,
                            "perPage": 2,
                            "disk": {},
                            "cookieExpiration": 86400,
                            "entitiesRefs": {
                                "users": {
                                    "slug": "users",
                                    "namespace": "\\App\\Models\\User",
                                    "name": "name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope"
                                    ]
                                },
                                "posts": {
                                    "slug": "posts",
                                    "namespace": "\\App\\Models\\Post",
                                    "name": "contact_name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope",
                                        "App\\Models\\Scopes\\ReviewedScope"
                                    ]
                                },
                                "password": {
                                    "slug": "password",
                                    "namespace": "\\App\\Models\\PasswordReset",
                                    "name": null,
                                    "scopes": []
                                }
                            },
                            "apiMsg": [],
                            "apiUri": [],
                            "selectedPackage": null,
                            "packages": null,
                            "paymentMethods": null,
                            "latestPayment": {
                                "currentPaymentIsActive": 0,
                                "currentPaymentMethodId": 0,
                                "currentPackageId": 0,
                                "currentPackagePrice": 0,
                                "currentPackagePicturesLimit": 0
                            }
                        },
                        "defaults": [],
                        "wheres": {
                            "userId": "[0-9]+",
                            "provider": "facebook|linkedin|google",
                            "field": "email|phone",
                            "token": ".*",
                            "id": "[0-9]+",
                            "slugOrId": "[^/]+",
                            "code": "[^/]+",
                            "countryCode": "[a-zA-Z]{2}"
                        },
                        "parameters": [],
                        "parameterNames": [],
                        "computedMiddleware": [
                            "api",
                            {}
                        ],
                        "compiled": {}
                    },
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
                "line": 669,
                "function": "runRoute",
                "class": "Illuminate\\Routing\\Router",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {
                        "uri": "api/posts",
                        "methods": [
                            "GET",
                            "HEAD"
                        ],
                        "action": {
                            "middleware": [
                                "api"
                            ],
                            "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                            "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                            "namespace": "App\\Http\\Controllers\\Api",
                            "prefix": "api/posts",
                            "where": [],
                            "as": "posts.index"
                        },
                        "isFallback": false,
                        "controller": {
                            "locale": null,
                            "countryCode": null,
                            "messages": [],
                            "errors": [],
                            "cacheExpiration": 86400,
                            "perPage": 2,
                            "disk": {},
                            "cookieExpiration": 86400,
                            "entitiesRefs": {
                                "users": {
                                    "slug": "users",
                                    "namespace": "\\App\\Models\\User",
                                    "name": "name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope"
                                    ]
                                },
                                "posts": {
                                    "slug": "posts",
                                    "namespace": "\\App\\Models\\Post",
                                    "name": "contact_name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope",
                                        "App\\Models\\Scopes\\ReviewedScope"
                                    ]
                                },
                                "password": {
                                    "slug": "password",
                                    "namespace": "\\App\\Models\\PasswordReset",
                                    "name": null,
                                    "scopes": []
                                }
                            },
                            "apiMsg": [],
                            "apiUri": [],
                            "selectedPackage": null,
                            "packages": null,
                            "paymentMethods": null,
                            "latestPayment": {
                                "currentPaymentIsActive": 0,
                                "currentPaymentMethodId": 0,
                                "currentPackageId": 0,
                                "currentPackagePrice": 0,
                                "currentPackagePicturesLimit": 0
                            }
                        },
                        "defaults": [],
                        "wheres": {
                            "userId": "[0-9]+",
                            "provider": "facebook|linkedin|google",
                            "field": "email|phone",
                            "token": ".*",
                            "id": "[0-9]+",
                            "slugOrId": "[^/]+",
                            "code": "[^/]+",
                            "countryCode": "[a-zA-Z]{2}"
                        },
                        "parameters": [],
                        "parameterNames": [],
                        "computedMiddleware": [
                            "api",
                            {}
                        ],
                        "compiled": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
                "line": 658,
                "function": "dispatchToRoute",
                "class": "Illuminate\\Routing\\Router",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
                "line": 190,
                "function": "dispatch",
                "class": "Illuminate\\Routing\\Router",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 141,
                "function": "Illuminate\\Foundation\\Http\\{closure}",
                "class": "Illuminate\\Foundation\\Http\\Kernel",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php",
                "line": 59,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
                "line": 21,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
                "line": 31,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
                "line": 21,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
                "line": 40,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
                "line": 27,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/app/Http/Middleware/PreventRequestsDuringMaintenance.php",
                "line": 115,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "App\\Http\\Middleware\\PreventRequestsDuringMaintenance",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/fruitcake/laravel-cors/src/HandleCors.php",
                "line": 52,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Fruitcake\\Cors\\HandleCors",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
                "line": 39,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 180,
                "function": "handle",
                "class": "Illuminate\\Http\\Middleware\\TrustProxies",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
                "line": 116,
                "function": "Illuminate\\Pipeline\\{closure}",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
                "line": 165,
                "function": "then",
                "class": "Illuminate\\Pipeline\\Pipeline",
                "type": "->",
                "args": [
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
                "line": 134,
                "function": "sendRequestThroughRouter",
                "class": "Illuminate\\Foundation\\Http\\Kernel",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
                "line": 299,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Http\\Kernel",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
                "line": 287,
                "function": "callLaravelOrLumenRoute",
                "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
                "line": 89,
                "function": "makeApiCall",
                "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
                "type": "->",
                "args": [
                    {
                        "attributes": {},
                        "request": {},
                        "query": {},
                        "server": {},
                        "files": {},
                        "cookies": {},
                        "headers": {}
                    },
                    {
                        "uri": "api/posts",
                        "methods": [
                            "GET",
                            "HEAD"
                        ],
                        "action": {
                            "middleware": [
                                "api"
                            ],
                            "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                            "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                            "namespace": "App\\Http\\Controllers\\Api",
                            "prefix": "api/posts",
                            "where": [],
                            "as": "posts.index"
                        },
                        "isFallback": false,
                        "controller": {
                            "locale": null,
                            "countryCode": null,
                            "messages": [],
                            "errors": [],
                            "cacheExpiration": 86400,
                            "perPage": 2,
                            "disk": {},
                            "cookieExpiration": 86400,
                            "entitiesRefs": {
                                "users": {
                                    "slug": "users",
                                    "namespace": "\\App\\Models\\User",
                                    "name": "name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope"
                                    ]
                                },
                                "posts": {
                                    "slug": "posts",
                                    "namespace": "\\App\\Models\\Post",
                                    "name": "contact_name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope",
                                        "App\\Models\\Scopes\\ReviewedScope"
                                    ]
                                },
                                "password": {
                                    "slug": "password",
                                    "namespace": "\\App\\Models\\PasswordReset",
                                    "name": null,
                                    "scopes": []
                                }
                            },
                            "apiMsg": [],
                            "apiUri": [],
                            "selectedPackage": null,
                            "packages": null,
                            "paymentMethods": null,
                            "latestPayment": {
                                "currentPaymentIsActive": 0,
                                "currentPaymentMethodId": 0,
                                "currentPackageId": 0,
                                "currentPackagePrice": 0,
                                "currentPackagePicturesLimit": 0
                            }
                        },
                        "defaults": [],
                        "wheres": {
                            "userId": "[0-9]+",
                            "provider": "facebook|linkedin|google",
                            "field": "email|phone",
                            "token": ".*",
                            "id": "[0-9]+",
                            "slugOrId": "[^/]+",
                            "code": "[^/]+",
                            "countryCode": "[a-zA-Z]{2}"
                        },
                        "parameters": [],
                        "parameterNames": [],
                        "computedMiddleware": [
                            "api",
                            {}
                        ],
                        "compiled": {}
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
                "line": 45,
                "function": "makeResponseCall",
                "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
                "type": "->",
                "args": [
                    {
                        "httpMethods": [
                            "GET"
                        ],
                        "uri": "api/posts",
                        "metadata": {
                            "groupName": "Listings",
                            "beforeGroup": null,
                            "afterGroup": null,
                            "groupDescription": "",
                            "title": "List listings",
                            "description": "",
                            "authenticated": false,
                            "custom": []
                        },
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "urlParameters": [],
                        "cleanUrlParameters": [],
                        "queryParameters": {
                            "op": {
                                "name": "op",
                                "description": "Type of listings list (optional) - Possible value: search,sponsored,latest,similar.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "postId": {
                                "name": "postId",
                                "description": "Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "distance": {
                                "name": "distance",
                                "description": "Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "belongLoggedUser": {
                                "name": "belongLoggedUser",
                                "description": "Do listings are belonged the logged user? Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": true,
                                "type": "boolean",
                                "custom": []
                            },
                            "pendingApproval": {
                                "name": "pendingApproval",
                                "description": "To list a user's listings in pending approval. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "archived": {
                                "name": "archived",
                                "description": "To list a user's archived listings. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "embed": {
                                "name": "embed",
                                "description": "Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "sort": {
                                "name": "sort",
                                "description": "The sorting parameter (Order by DESC with the given column. Use \"-\" as prefix to order by ASC). Possible values: created_at.",
                                "required": false,
                                "example": "created_at",
                                "type": "string",
                                "custom": []
                            },
                            "perPage": {
                                "name": "perPage",
                                "description": "Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.",
                                "required": false,
                                "example": 2,
                                "type": "integer",
                                "custom": []
                            }
                        },
                        "cleanQueryParameters": {
                            "op": "null",
                            "postId": 0,
                            "distance": 0,
                            "belongLoggedUser": true,
                            "pendingApproval": false,
                            "archived": false,
                            "embed": "null",
                            "sort": "created_at",
                            "perPage": 2
                        },
                        "bodyParameters": [],
                        "cleanBodyParameters": [],
                        "fileParameters": [],
                        "responses": [],
                        "responseFields": [],
                        "auth": [],
                        "controller": {
                            "name": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "method": {
                            "name": "index",
                            "class": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "route": {
                            "uri": "api/posts",
                            "methods": [
                                "GET",
                                "HEAD"
                            ],
                            "action": {
                                "middleware": [
                                    "api"
                                ],
                                "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                                "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                                "namespace": "App\\Http\\Controllers\\Api",
                                "prefix": "api/posts",
                                "where": [],
                                "as": "posts.index"
                            },
                            "isFallback": false,
                            "controller": {
                                "locale": null,
                                "countryCode": null,
                                "messages": [],
                                "errors": [],
                                "cacheExpiration": 86400,
                                "perPage": 2,
                                "disk": {},
                                "cookieExpiration": 86400,
                                "entitiesRefs": {
                                    "users": {
                                        "slug": "users",
                                        "namespace": "\\App\\Models\\User",
                                        "name": "name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope"
                                        ]
                                    },
                                    "posts": {
                                        "slug": "posts",
                                        "namespace": "\\App\\Models\\Post",
                                        "name": "contact_name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope",
                                            "App\\Models\\Scopes\\ReviewedScope"
                                        ]
                                    },
                                    "password": {
                                        "slug": "password",
                                        "namespace": "\\App\\Models\\PasswordReset",
                                        "name": null,
                                        "scopes": []
                                    }
                                },
                                "apiMsg": [],
                                "apiUri": [],
                                "selectedPackage": null,
                                "packages": null,
                                "paymentMethods": null,
                                "latestPayment": {
                                    "currentPaymentIsActive": 0,
                                    "currentPaymentMethodId": 0,
                                    "currentPackageId": 0,
                                    "currentPackagePrice": 0,
                                    "currentPackagePicturesLimit": 0
                                }
                            },
                            "defaults": [],
                            "wheres": {
                                "userId": "[0-9]+",
                                "provider": "facebook|linkedin|google",
                                "field": "email|phone",
                                "token": ".*",
                                "id": "[0-9]+",
                                "slugOrId": "[^/]+",
                                "code": "[^/]+",
                                "countryCode": "[a-zA-Z]{2}"
                            },
                            "parameters": [],
                            "parameterNames": [],
                            "computedMiddleware": [
                                "api",
                                {}
                            ],
                            "compiled": {}
                        }
                    },
                    {
                        "methods": [
                            "GET"
                        ],
                        "config": {
                            "app.env": "local",
                            "app.debug": false
                        },
                        "queryParams": [],
                        "bodyParams": [],
                        "fileParams": [],
                        "cookies": []
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
                "line": 35,
                "function": "makeResponseCallIfConditionsPass",
                "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
                "type": "->",
                "args": [
                    {
                        "httpMethods": [
                            "GET"
                        ],
                        "uri": "api/posts",
                        "metadata": {
                            "groupName": "Listings",
                            "beforeGroup": null,
                            "afterGroup": null,
                            "groupDescription": "",
                            "title": "List listings",
                            "description": "",
                            "authenticated": false,
                            "custom": []
                        },
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "urlParameters": [],
                        "cleanUrlParameters": [],
                        "queryParameters": {
                            "op": {
                                "name": "op",
                                "description": "Type of listings list (optional) - Possible value: search,sponsored,latest,similar.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "postId": {
                                "name": "postId",
                                "description": "Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "distance": {
                                "name": "distance",
                                "description": "Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "belongLoggedUser": {
                                "name": "belongLoggedUser",
                                "description": "Do listings are belonged the logged user? Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": true,
                                "type": "boolean",
                                "custom": []
                            },
                            "pendingApproval": {
                                "name": "pendingApproval",
                                "description": "To list a user's listings in pending approval. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "archived": {
                                "name": "archived",
                                "description": "To list a user's archived listings. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "embed": {
                                "name": "embed",
                                "description": "Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "sort": {
                                "name": "sort",
                                "description": "The sorting parameter (Order by DESC with the given column. Use \"-\" as prefix to order by ASC). Possible values: created_at.",
                                "required": false,
                                "example": "created_at",
                                "type": "string",
                                "custom": []
                            },
                            "perPage": {
                                "name": "perPage",
                                "description": "Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.",
                                "required": false,
                                "example": 2,
                                "type": "integer",
                                "custom": []
                            }
                        },
                        "cleanQueryParameters": {
                            "op": "null",
                            "postId": 0,
                            "distance": 0,
                            "belongLoggedUser": true,
                            "pendingApproval": false,
                            "archived": false,
                            "embed": "null",
                            "sort": "created_at",
                            "perPage": 2
                        },
                        "bodyParameters": [],
                        "cleanBodyParameters": [],
                        "fileParameters": [],
                        "responses": [],
                        "responseFields": [],
                        "auth": [],
                        "controller": {
                            "name": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "method": {
                            "name": "index",
                            "class": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "route": {
                            "uri": "api/posts",
                            "methods": [
                                "GET",
                                "HEAD"
                            ],
                            "action": {
                                "middleware": [
                                    "api"
                                ],
                                "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                                "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                                "namespace": "App\\Http\\Controllers\\Api",
                                "prefix": "api/posts",
                                "where": [],
                                "as": "posts.index"
                            },
                            "isFallback": false,
                            "controller": {
                                "locale": null,
                                "countryCode": null,
                                "messages": [],
                                "errors": [],
                                "cacheExpiration": 86400,
                                "perPage": 2,
                                "disk": {},
                                "cookieExpiration": 86400,
                                "entitiesRefs": {
                                    "users": {
                                        "slug": "users",
                                        "namespace": "\\App\\Models\\User",
                                        "name": "name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope"
                                        ]
                                    },
                                    "posts": {
                                        "slug": "posts",
                                        "namespace": "\\App\\Models\\Post",
                                        "name": "contact_name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope",
                                            "App\\Models\\Scopes\\ReviewedScope"
                                        ]
                                    },
                                    "password": {
                                        "slug": "password",
                                        "namespace": "\\App\\Models\\PasswordReset",
                                        "name": null,
                                        "scopes": []
                                    }
                                },
                                "apiMsg": [],
                                "apiUri": [],
                                "selectedPackage": null,
                                "packages": null,
                                "paymentMethods": null,
                                "latestPayment": {
                                    "currentPaymentIsActive": 0,
                                    "currentPaymentMethodId": 0,
                                    "currentPackageId": 0,
                                    "currentPackagePrice": 0,
                                    "currentPackagePicturesLimit": 0
                                }
                            },
                            "defaults": [],
                            "wheres": {
                                "userId": "[0-9]+",
                                "provider": "facebook|linkedin|google",
                                "field": "email|phone",
                                "token": ".*",
                                "id": "[0-9]+",
                                "slugOrId": "[^/]+",
                                "code": "[^/]+",
                                "countryCode": "[a-zA-Z]{2}"
                            },
                            "parameters": [],
                            "parameterNames": [],
                            "computedMiddleware": [
                                "api",
                                {}
                            ],
                            "compiled": {}
                        }
                    },
                    {
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "response_calls": {
                            "methods": [
                                "GET"
                            ],
                            "config": {
                                "app.env": "local",
                                "app.debug": false
                            },
                            "queryParams": [],
                            "bodyParams": [],
                            "fileParams": [],
                            "cookies": []
                        }
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
                "line": 222,
                "function": "__invoke",
                "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
                "type": "->",
                "args": [
                    {
                        "httpMethods": [
                            "GET"
                        ],
                        "uri": "api/posts",
                        "metadata": {
                            "groupName": "Listings",
                            "beforeGroup": null,
                            "afterGroup": null,
                            "groupDescription": "",
                            "title": "List listings",
                            "description": "",
                            "authenticated": false,
                            "custom": []
                        },
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "urlParameters": [],
                        "cleanUrlParameters": [],
                        "queryParameters": {
                            "op": {
                                "name": "op",
                                "description": "Type of listings list (optional) - Possible value: search,sponsored,latest,similar.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "postId": {
                                "name": "postId",
                                "description": "Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "distance": {
                                "name": "distance",
                                "description": "Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "belongLoggedUser": {
                                "name": "belongLoggedUser",
                                "description": "Do listings are belonged the logged user? Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": true,
                                "type": "boolean",
                                "custom": []
                            },
                            "pendingApproval": {
                                "name": "pendingApproval",
                                "description": "To list a user's listings in pending approval. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "archived": {
                                "name": "archived",
                                "description": "To list a user's archived listings. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "embed": {
                                "name": "embed",
                                "description": "Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "sort": {
                                "name": "sort",
                                "description": "The sorting parameter (Order by DESC with the given column. Use \"-\" as prefix to order by ASC). Possible values: created_at.",
                                "required": false,
                                "example": "created_at",
                                "type": "string",
                                "custom": []
                            },
                            "perPage": {
                                "name": "perPage",
                                "description": "Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.",
                                "required": false,
                                "example": 2,
                                "type": "integer",
                                "custom": []
                            }
                        },
                        "cleanQueryParameters": {
                            "op": "null",
                            "postId": 0,
                            "distance": 0,
                            "belongLoggedUser": true,
                            "pendingApproval": false,
                            "archived": false,
                            "embed": "null",
                            "sort": "created_at",
                            "perPage": 2
                        },
                        "bodyParameters": [],
                        "cleanBodyParameters": [],
                        "fileParameters": [],
                        "responses": [],
                        "responseFields": [],
                        "auth": [],
                        "controller": {
                            "name": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "method": {
                            "name": "index",
                            "class": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "route": {
                            "uri": "api/posts",
                            "methods": [
                                "GET",
                                "HEAD"
                            ],
                            "action": {
                                "middleware": [
                                    "api"
                                ],
                                "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                                "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                                "namespace": "App\\Http\\Controllers\\Api",
                                "prefix": "api/posts",
                                "where": [],
                                "as": "posts.index"
                            },
                            "isFallback": false,
                            "controller": {
                                "locale": null,
                                "countryCode": null,
                                "messages": [],
                                "errors": [],
                                "cacheExpiration": 86400,
                                "perPage": 2,
                                "disk": {},
                                "cookieExpiration": 86400,
                                "entitiesRefs": {
                                    "users": {
                                        "slug": "users",
                                        "namespace": "\\App\\Models\\User",
                                        "name": "name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope"
                                        ]
                                    },
                                    "posts": {
                                        "slug": "posts",
                                        "namespace": "\\App\\Models\\Post",
                                        "name": "contact_name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope",
                                            "App\\Models\\Scopes\\ReviewedScope"
                                        ]
                                    },
                                    "password": {
                                        "slug": "password",
                                        "namespace": "\\App\\Models\\PasswordReset",
                                        "name": null,
                                        "scopes": []
                                    }
                                },
                                "apiMsg": [],
                                "apiUri": [],
                                "selectedPackage": null,
                                "packages": null,
                                "paymentMethods": null,
                                "latestPayment": {
                                    "currentPaymentIsActive": 0,
                                    "currentPaymentMethodId": 0,
                                    "currentPackageId": 0,
                                    "currentPackagePrice": 0,
                                    "currentPackagePicturesLimit": 0
                                }
                            },
                            "defaults": [],
                            "wheres": {
                                "userId": "[0-9]+",
                                "provider": "facebook|linkedin|google",
                                "field": "email|phone",
                                "token": ".*",
                                "id": "[0-9]+",
                                "slugOrId": "[^/]+",
                                "code": "[^/]+",
                                "countryCode": "[a-zA-Z]{2}"
                            },
                            "parameters": [],
                            "parameterNames": [],
                            "computedMiddleware": [
                                "api",
                                {}
                            ],
                            "compiled": {}
                        }
                    },
                    {
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "response_calls": {
                            "methods": [
                                "GET"
                            ],
                            "config": {
                                "app.env": "local",
                                "app.debug": false
                            },
                            "queryParams": [],
                            "bodyParams": [],
                            "fileParams": [],
                            "cookies": []
                        }
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
                "line": 179,
                "function": "iterateThroughStrategies",
                "class": "Knuckles\\Scribe\\Extracting\\Extractor",
                "type": "->",
                "args": [
                    "responses",
                    {
                        "httpMethods": [
                            "GET"
                        ],
                        "uri": "api/posts",
                        "metadata": {
                            "groupName": "Listings",
                            "beforeGroup": null,
                            "afterGroup": null,
                            "groupDescription": "",
                            "title": "List listings",
                            "description": "",
                            "authenticated": false,
                            "custom": []
                        },
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "urlParameters": [],
                        "cleanUrlParameters": [],
                        "queryParameters": {
                            "op": {
                                "name": "op",
                                "description": "Type of listings list (optional) - Possible value: search,sponsored,latest,similar.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "postId": {
                                "name": "postId",
                                "description": "Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "distance": {
                                "name": "distance",
                                "description": "Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "belongLoggedUser": {
                                "name": "belongLoggedUser",
                                "description": "Do listings are belonged the logged user? Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": true,
                                "type": "boolean",
                                "custom": []
                            },
                            "pendingApproval": {
                                "name": "pendingApproval",
                                "description": "To list a user's listings in pending approval. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "archived": {
                                "name": "archived",
                                "description": "To list a user's archived listings. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "embed": {
                                "name": "embed",
                                "description": "Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "sort": {
                                "name": "sort",
                                "description": "The sorting parameter (Order by DESC with the given column. Use \"-\" as prefix to order by ASC). Possible values: created_at.",
                                "required": false,
                                "example": "created_at",
                                "type": "string",
                                "custom": []
                            },
                            "perPage": {
                                "name": "perPage",
                                "description": "Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.",
                                "required": false,
                                "example": 2,
                                "type": "integer",
                                "custom": []
                            }
                        },
                        "cleanQueryParameters": {
                            "op": "null",
                            "postId": 0,
                            "distance": 0,
                            "belongLoggedUser": true,
                            "pendingApproval": false,
                            "archived": false,
                            "embed": "null",
                            "sort": "created_at",
                            "perPage": 2
                        },
                        "bodyParameters": [],
                        "cleanBodyParameters": [],
                        "fileParameters": [],
                        "responses": [],
                        "responseFields": [],
                        "auth": [],
                        "controller": {
                            "name": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "method": {
                            "name": "index",
                            "class": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "route": {
                            "uri": "api/posts",
                            "methods": [
                                "GET",
                                "HEAD"
                            ],
                            "action": {
                                "middleware": [
                                    "api"
                                ],
                                "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                                "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                                "namespace": "App\\Http\\Controllers\\Api",
                                "prefix": "api/posts",
                                "where": [],
                                "as": "posts.index"
                            },
                            "isFallback": false,
                            "controller": {
                                "locale": null,
                                "countryCode": null,
                                "messages": [],
                                "errors": [],
                                "cacheExpiration": 86400,
                                "perPage": 2,
                                "disk": {},
                                "cookieExpiration": 86400,
                                "entitiesRefs": {
                                    "users": {
                                        "slug": "users",
                                        "namespace": "\\App\\Models\\User",
                                        "name": "name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope"
                                        ]
                                    },
                                    "posts": {
                                        "slug": "posts",
                                        "namespace": "\\App\\Models\\Post",
                                        "name": "contact_name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope",
                                            "App\\Models\\Scopes\\ReviewedScope"
                                        ]
                                    },
                                    "password": {
                                        "slug": "password",
                                        "namespace": "\\App\\Models\\PasswordReset",
                                        "name": null,
                                        "scopes": []
                                    }
                                },
                                "apiMsg": [],
                                "apiUri": [],
                                "selectedPackage": null,
                                "packages": null,
                                "paymentMethods": null,
                                "latestPayment": {
                                    "currentPaymentIsActive": 0,
                                    "currentPaymentMethodId": 0,
                                    "currentPackageId": 0,
                                    "currentPackagePrice": 0,
                                    "currentPackagePicturesLimit": 0
                                }
                            },
                            "defaults": [],
                            "wheres": {
                                "userId": "[0-9]+",
                                "provider": "facebook|linkedin|google",
                                "field": "email|phone",
                                "token": ".*",
                                "id": "[0-9]+",
                                "slugOrId": "[^/]+",
                                "code": "[^/]+",
                                "countryCode": "[a-zA-Z]{2}"
                            },
                            "parameters": [],
                            "parameterNames": [],
                            "computedMiddleware": [
                                "api",
                                {}
                            ],
                            "compiled": {}
                        }
                    },
                    {
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "response_calls": {
                            "methods": [
                                "GET"
                            ],
                            "config": {
                                "app.env": "local",
                                "app.debug": false
                            },
                            "queryParams": [],
                            "bodyParams": [],
                            "fileParams": [],
                            "cookies": []
                        }
                    },
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
                "line": 116,
                "function": "fetchResponses",
                "class": "Knuckles\\Scribe\\Extracting\\Extractor",
                "type": "->",
                "args": [
                    {
                        "httpMethods": [
                            "GET"
                        ],
                        "uri": "api/posts",
                        "metadata": {
                            "groupName": "Listings",
                            "beforeGroup": null,
                            "afterGroup": null,
                            "groupDescription": "",
                            "title": "List listings",
                            "description": "",
                            "authenticated": false,
                            "custom": []
                        },
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "urlParameters": [],
                        "cleanUrlParameters": [],
                        "queryParameters": {
                            "op": {
                                "name": "op",
                                "description": "Type of listings list (optional) - Possible value: search,sponsored,latest,similar.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "postId": {
                                "name": "postId",
                                "description": "Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "distance": {
                                "name": "distance",
                                "description": "Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.",
                                "required": false,
                                "example": 0,
                                "type": "integer",
                                "custom": []
                            },
                            "belongLoggedUser": {
                                "name": "belongLoggedUser",
                                "description": "Do listings are belonged the logged user? Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": true,
                                "type": "boolean",
                                "custom": []
                            },
                            "pendingApproval": {
                                "name": "pendingApproval",
                                "description": "To list a user's listings in pending approval. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "archived": {
                                "name": "archived",
                                "description": "To list a user's archived listings. Authentication token need to be sent in the header, and the \"op\" parameter need be null or unset - Possible value: 0 or 1.",
                                "required": false,
                                "example": false,
                                "type": "boolean",
                                "custom": []
                            },
                            "embed": {
                                "name": "embed",
                                "description": "Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.",
                                "required": false,
                                "example": "null",
                                "type": "string",
                                "custom": []
                            },
                            "sort": {
                                "name": "sort",
                                "description": "The sorting parameter (Order by DESC with the given column. Use \"-\" as prefix to order by ASC). Possible values: created_at.",
                                "required": false,
                                "example": "created_at",
                                "type": "string",
                                "custom": []
                            },
                            "perPage": {
                                "name": "perPage",
                                "description": "Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.",
                                "required": false,
                                "example": 2,
                                "type": "integer",
                                "custom": []
                            }
                        },
                        "cleanQueryParameters": {
                            "op": "null",
                            "postId": 0,
                            "distance": 0,
                            "belongLoggedUser": true,
                            "pendingApproval": false,
                            "archived": false,
                            "embed": "null",
                            "sort": "created_at",
                            "perPage": 2
                        },
                        "bodyParameters": [],
                        "cleanBodyParameters": [],
                        "fileParameters": [],
                        "responses": [],
                        "responseFields": [],
                        "auth": [],
                        "controller": {
                            "name": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "method": {
                            "name": "index",
                            "class": "App\\Http\\Controllers\\Api\\PostController"
                        },
                        "route": {
                            "uri": "api/posts",
                            "methods": [
                                "GET",
                                "HEAD"
                            ],
                            "action": {
                                "middleware": [
                                    "api"
                                ],
                                "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                                "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                                "namespace": "App\\Http\\Controllers\\Api",
                                "prefix": "api/posts",
                                "where": [],
                                "as": "posts.index"
                            },
                            "isFallback": false,
                            "controller": {
                                "locale": null,
                                "countryCode": null,
                                "messages": [],
                                "errors": [],
                                "cacheExpiration": 86400,
                                "perPage": 2,
                                "disk": {},
                                "cookieExpiration": 86400,
                                "entitiesRefs": {
                                    "users": {
                                        "slug": "users",
                                        "namespace": "\\App\\Models\\User",
                                        "name": "name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope"
                                        ]
                                    },
                                    "posts": {
                                        "slug": "posts",
                                        "namespace": "\\App\\Models\\Post",
                                        "name": "contact_name",
                                        "scopes": [
                                            "App\\Models\\Scopes\\VerifiedScope",
                                            "App\\Models\\Scopes\\ReviewedScope"
                                        ]
                                    },
                                    "password": {
                                        "slug": "password",
                                        "namespace": "\\App\\Models\\PasswordReset",
                                        "name": null,
                                        "scopes": []
                                    }
                                },
                                "apiMsg": [],
                                "apiUri": [],
                                "selectedPackage": null,
                                "packages": null,
                                "paymentMethods": null,
                                "latestPayment": {
                                    "currentPaymentIsActive": 0,
                                    "currentPaymentMethodId": 0,
                                    "currentPackageId": 0,
                                    "currentPackagePrice": 0,
                                    "currentPackagePicturesLimit": 0
                                }
                            },
                            "defaults": [],
                            "wheres": {
                                "userId": "[0-9]+",
                                "provider": "facebook|linkedin|google",
                                "field": "email|phone",
                                "token": ".*",
                                "id": "[0-9]+",
                                "slugOrId": "[^/]+",
                                "code": "[^/]+",
                                "countryCode": "[a-zA-Z]{2}"
                            },
                            "parameters": [],
                            "parameterNames": [],
                            "computedMiddleware": [
                                "api",
                                {}
                            ],
                            "compiled": {}
                        }
                    },
                    {
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "response_calls": {
                            "methods": [
                                "GET"
                            ],
                            "config": {
                                "app.env": "local",
                                "app.debug": false
                            },
                            "queryParams": [],
                            "bodyParams": [],
                            "fileParams": [],
                            "cookies": []
                        }
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
                "line": 123,
                "function": "processRoute",
                "class": "Knuckles\\Scribe\\Extracting\\Extractor",
                "type": "->",
                "args": [
                    {
                        "uri": "api/posts",
                        "methods": [
                            "GET",
                            "HEAD"
                        ],
                        "action": {
                            "middleware": [
                                "api"
                            ],
                            "uses": "App\\Http\\Controllers\\Api\\PostController@index",
                            "controller": "App\\Http\\Controllers\\Api\\PostController@index",
                            "namespace": "App\\Http\\Controllers\\Api",
                            "prefix": "api/posts",
                            "where": [],
                            "as": "posts.index"
                        },
                        "isFallback": false,
                        "controller": {
                            "locale": null,
                            "countryCode": null,
                            "messages": [],
                            "errors": [],
                            "cacheExpiration": 86400,
                            "perPage": 2,
                            "disk": {},
                            "cookieExpiration": 86400,
                            "entitiesRefs": {
                                "users": {
                                    "slug": "users",
                                    "namespace": "\\App\\Models\\User",
                                    "name": "name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope"
                                    ]
                                },
                                "posts": {
                                    "slug": "posts",
                                    "namespace": "\\App\\Models\\Post",
                                    "name": "contact_name",
                                    "scopes": [
                                        "App\\Models\\Scopes\\VerifiedScope",
                                        "App\\Models\\Scopes\\ReviewedScope"
                                    ]
                                },
                                "password": {
                                    "slug": "password",
                                    "namespace": "\\App\\Models\\PasswordReset",
                                    "name": null,
                                    "scopes": []
                                }
                            },
                            "apiMsg": [],
                            "apiUri": [],
                            "selectedPackage": null,
                            "packages": null,
                            "paymentMethods": null,
                            "latestPayment": {
                                "currentPaymentIsActive": 0,
                                "currentPaymentMethodId": 0,
                                "currentPackageId": 0,
                                "currentPackagePrice": 0,
                                "currentPackagePicturesLimit": 0
                            }
                        },
                        "defaults": [],
                        "wheres": {
                            "userId": "[0-9]+",
                            "provider": "facebook|linkedin|google",
                            "field": "email|phone",
                            "token": ".*",
                            "id": "[0-9]+",
                            "slugOrId": "[^/]+",
                            "code": "[^/]+",
                            "countryCode": "[a-zA-Z]{2}"
                        },
                        "parameters": [],
                        "parameterNames": [],
                        "computedMiddleware": [
                            "api",
                            {}
                        ],
                        "compiled": {}
                    },
                    {
                        "headers": {
                            "Content-Type": "application/json",
                            "Accept": "application/json",
                            "Content-Language": "en",
                            "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
                            "X-AppType": "docs"
                        },
                        "response_calls": {
                            "methods": [
                                "GET"
                            ],
                            "config": {
                                "app.env": "local",
                                "app.debug": false
                            },
                            "queryParams": [],
                            "bodyParams": [],
                            "fileParams": [],
                            "cookies": []
                        }
                    }
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
                "line": 80,
                "function": "extractEndpointsInfoFromLaravelApp",
                "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
                "type": "->",
                "args": [
                    [
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {},
                        {}
                    ],
                    [],
                    [],
                    []
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
                "line": 56,
                "function": "extractEndpointsInfoAndWriteToDisk",
                "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
                "type": "->",
                "args": [
                    {},
                    true
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
                "line": 55,
                "function": "get",
                "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
                "type": "->",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
                "line": 36,
                "function": "handle",
                "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Container/Util.php",
                "line": 41,
                "function": "Illuminate\\Container\\{closure}",
                "class": "Illuminate\\Container\\BoundMethod",
                "type": "::",
                "args": []
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
                "line": 93,
                "function": "unwrapIfClosure",
                "class": "Illuminate\\Container\\Util",
                "type": "::",
                "args": [
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
                "line": 37,
                "function": "callBoundMethod",
                "class": "Illuminate\\Container\\BoundMethod",
                "type": "::",
                "args": [
                    {
                        "contextual": []
                    },
                    [
                        {},
                        "handle"
                    ],
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Container/Container.php",
                "line": 651,
                "function": "call",
                "class": "Illuminate\\Container\\BoundMethod",
                "type": "::",
                "args": [
                    {
                        "contextual": []
                    },
                    [
                        {},
                        "handle"
                    ],
                    [],
                    null
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Console/Command.php",
                "line": 178,
                "function": "call",
                "class": "Illuminate\\Container\\Container",
                "type": "->",
                "args": [
                    [
                        {},
                        "handle"
                    ]
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/symfony/console/Command/Command.php",
                "line": 291,
                "function": "execute",
                "class": "Illuminate\\Console\\Command",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Console/Command.php",
                "line": 148,
                "function": "run",
                "class": "Symfony\\Component\\Console\\Command\\Command",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/symfony/console/Application.php",
                "line": 1014,
                "function": "run",
                "class": "Illuminate\\Console\\Command",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/symfony/console/Application.php",
                "line": 301,
                "function": "doRunCommand",
                "class": "Symfony\\Component\\Console\\Application",
                "type": "->",
                "args": [
                    {},
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/symfony/console/Application.php",
                "line": 171,
                "function": "doRun",
                "class": "Symfony\\Component\\Console\\Application",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Console/Application.php",
                "line": 102,
                "function": "run",
                "class": "Symfony\\Component\\Console\\Application",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
                "line": 155,
                "function": "run",
                "class": "Illuminate\\Console\\Application",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            },
            {
                "file": "/Users/mayeul/Codes/projects/laraclassifier/artisan",
                "line": 37,
                "function": "handle",
                "class": "Illuminate\\Foundation\\Console\\Kernel",
                "type": "->",
                "args": [
                    {},
                    {}
                ]
            }
        ]
    },
    "error_code": 1
}
 

Request      

GET api/posts

Query Parameters

op  string optional  

Type of listings list (optional) - Possible value: search,sponsored,latest,similar.

postId  integer optional  

Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).

distance  integer optional  

Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.

belongLoggedUser  boolean optional  

Do listings are belonged the logged user? Authentication token need to be sent in the header, and the "op" parameter need be null or unset - Possible value: 0 or 1.

pendingApproval  boolean optional  

To list a user's listings in pending approval. Authentication token need to be sent in the header, and the "op" parameter need be null or unset - Possible value: 0 or 1.

archived  boolean optional  

To list a user's archived listings. Authentication token need to be sent in the header, and the "op" parameter need be null or unset - Possible value: 0 or 1.

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get listing

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/2?unactivatedIncluded=1&belongLoggedUser=&noCache=&embed=user%2CpostType&detailed=" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/2"
);

const params = {
    "unactivatedIncluded": "1",
    "belongLoggedUser": "0",
    "noCache": "0",
    "embed": "user,postType",
    "detailed": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts/2',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'unactivatedIncluded'=> '1',
            'belongLoggedUser'=> '0',
            'noCache'=> '0',
            'embed'=> 'user,postType',
            'detailed'=> '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "country_code": "US",
        "user_id": 1,
        "category_id": 19,
        "post_type_id": 1,
        "title": "MacBook Air",
        "description": "Aliquam sit est pariatur voluptatem est amet et. Expedita non error non. Quasi ea ut asperiores asperiores cumque est ipsam.\n\nDeleniti dolores saepe blanditiis dolorem et dolore qui. Eaque nobis nihil accusamus modi.\n\nUt eaque harum sed sint possimus minus. Ut laborum enim earum ipsa id officia sapiente accusantium. Incidunt illo quasi sit eligendi mollitia. Optio temporibus placeat officiis porro.",
        "tags": [
            "sit",
            "laboriosam",
            "et"
        ],
        "price": "13135.00",
        "negotiable": 0,
        "contact_name": "Administrator",
        "auth_field": "email",
        "email": "admin@larapen.com",
        "phone": "22951454548",
        "phone_national": "22951454548",
        "phone_country": "US",
        "phone_hidden": 0,
        "address": null,
        "city_id": 44161,
        "lat": 26.45,
        "lon": -82.02,
        "ip_addr": "53.197.166.140",
        "visits": 47697,
        "tmp_token": null,
        "email_token": null,
        "phone_token": "demoFaker",
        "email_verified_at": "2022-11-14T01:49:43.000000Z",
        "phone_verified_at": "2022-11-14T01:49:43.000000Z",
        "accept_terms": 1,
        "accept_marketing_offers": 1,
        "is_permanent": 0,
        "reviewed_at": "2022-11-14T01:49:43.000000Z",
        "featured": 0,
        "archived_at": null,
        "archived_manually_at": null,
        "deletion_mail_sent_at": null,
        "fb_profile": null,
        "partner": null,
        "created_at": "2022-10-16T06:18:03.000000Z",
        "updated_at": "2022-12-03T15:06:05.000000Z",
        "user": {
            "id": 1,
            "name": "Administrator",
            "username": null,
            "updated_at": "2022-11-28T09:03:20.000000Z",
            "original_updated_at": "2022-11-28 09:03:20",
            "original_last_activity": null,
            "created_at_formatted": "5 months ago",
            "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumb-800x800-3b3bc6de922fa8fd5b6fc144ce297925.jpg",
            "p_is_online": false,
            "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png"
        },
        "postType": {
            "id": 1,
            "name": "Private individual",
            "active": 1
        },
        "slug": "macbook-air",
        "phone_intl": "22951454548",
        "created_at_formatted": "1 month ago",
        "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumb-800x800-3b3bc6de922fa8fd5b6fc144ce297925.jpg",
        "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png",
        "price_label": "Price:",
        "price_formatted": "Contact us",
        "count_pictures": 0,
        "picture": {
            "filename": "app/default/picture.jpg",
            "url": {
                "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                "big": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
            }
        },
        "rating_cache": 0,
        "rating_count": 0
    },
    "extra": {
        "fieldsValues": []
    }
}
 

Request      

GET api/posts/{id}

URL Parameters

id  integer  

The post/listing's ID.

Query Parameters

unactivatedIncluded  boolean optional  

Include or not unactivated entries - Possible value: 0 or 1.

belongLoggedUser  boolean optional  

Does the listing is belonged the logged user? - Possible value: 0 or 1.

noCache  boolean optional  

Disable the cache for this request - Possible value: 0 or 1.

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,savedByLoggedUser,pictures,latestPayment,package,fieldsValues.

detailed  boolean optional  

Allow to get the listing's details with all its relationships (No need to set the 'embed' parameter).

Store listing

requires authentication

For both types of listing's creation (Single step or Multi steps). Note: The field 'admin_code' is only available when the listing's country's 'admin_type' column is set to 1 or 2.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/posts" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "category_id=1" \
    --form "post_type_id=1" \
    --form "title=John Doe" \
    --form "description=Beatae placeat atque tempore consequatur animi magni omnis." \
    --form "contact_name=John Doe" \
    --form "auth_field=email" \
    --form "phone=+17656766467" \
    --form "phone_country=null" \
    --form "city_id=10" \
    --form "accept_terms=" \
    --form "email=john.doe@domain.tld" \
    --form "country_code=US" \
    --form "admin_code=0" \
    --form "price=5000" \
    --form "negotiable=" \
    --form "phone_hidden=" \
    --form "ip_addr=magnam" \
    --form "accept_marketing_offers=" \
    --form "is_permanent=" \
    --form "tags=car,automotive,tesla,cyber,truck" \
    --form "package_id=2" \
    --form "payment_method_id=5" \
    --form "captcha_key=vero" \
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phps7jiEU" 
const url = new URL(
    "https://demo.laraclassifier.local/api/posts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('category_id', '1');
body.append('post_type_id', '1');
body.append('title', 'John Doe');
body.append('description', 'Beatae placeat atque tempore consequatur animi magni omnis.');
body.append('contact_name', 'John Doe');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', 'null');
body.append('city_id', '10');
body.append('accept_terms', '');
body.append('email', 'john.doe@domain.tld');
body.append('country_code', 'US');
body.append('admin_code', '0');
body.append('price', '5000');
body.append('negotiable', '');
body.append('phone_hidden', '');
body.append('ip_addr', 'magnam');
body.append('accept_marketing_offers', '');
body.append('is_permanent', '');
body.append('tags', 'car,automotive,tesla,cyber,truck');
body.append('package_id', '2');
body.append('payment_method_id', '5');
body.append('captcha_key', 'vero');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/posts',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'category_id',
                'contents' => '1'
            ],
            [
                'name' => 'post_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'title',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'description',
                'contents' => 'Beatae placeat atque tempore consequatur animi magni omnis.'
            ],
            [
                'name' => 'contact_name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => 'null'
            ],
            [
                'name' => 'city_id',
                'contents' => '10'
            ],
            [
                'name' => 'accept_terms',
                'contents' => ''
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'admin_code',
                'contents' => '0'
            ],
            [
                'name' => 'price',
                'contents' => '5000'
            ],
            [
                'name' => 'negotiable',
                'contents' => ''
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'ip_addr',
                'contents' => 'magnam'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'is_permanent',
                'contents' => ''
            ],
            [
                'name' => 'tags',
                'contents' => 'car,automotive,tesla,cyber,truck'
            ],
            [
                'name' => 'package_id',
                'contents' => '2'
            ],
            [
                'name' => 'payment_method_id',
                'contents' => '5'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'vero'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phps7jiEU', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/posts

Body Parameters

category_id  integer  

The category's ID.

post_type_id  integer optional  

The listing type's ID.

title  string  

The listing's title.

description  string  

The listing's description.

contact_name  string  

The listing's author name.

auth_field  string  

The user's auth field ('email' or 'phone').

phone  string optional  

The listing's author mobile number (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

city_id  integer  

The city's ID.

accept_terms  boolean  

Accept the website terms and conditions.

email  string optional  

The listing's author email address (Required when 'auth_field' value is 'email').

country_code  string  

The code of the user's country.

admin_code  string optional  

The administrative division's code.

price  integer  

The price.

negotiable  boolean optional  

Negotiable price or no.

phone_hidden  boolean optional  

Mobile phone number will be hidden in public or no.

ip_addr  string optional  

The listing's author IP address.

accept_marketing_offers  boolean optional  

Accept to receive marketing offers or no.

is_permanent  boolean optional  

Is it permanent post or no.

tags  string optional  

Comma-separated tags list.

pictures  file[]  

The listing's pictures.

package_id  integer  

The package's ID.

payment_method_id  integer optional  

The payment method's ID (required when the selected package's price is > 0).

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

Archive a listing

requires authentication

Put a listing offline

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/16/offline" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/16/offline"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.laraclassifier.local/api/posts/16/offline',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}/offline

URL Parameters

id  integer  

The post/listing's ID.

Repost a listing

requires authentication

Repost a listing by un-archiving it.

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/20/repost" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/20/repost"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.laraclassifier.local/api/posts/20/repost',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}/repost

URL Parameters

id  integer  

The post/listing's ID.

Update listing

requires authentication

Note: The fields 'pictures', 'package_id' and 'payment_method_id' are only available with the single step post edition. The field 'admin_code' is only available when the listing's country's 'admin_type' column is set to 1 or 2.

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/3" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "category_id=1" \
    --form "post_type_id=1" \
    --form "title=John Doe" \
    --form "description=Beatae placeat atque tempore consequatur animi magni omnis." \
    --form "contact_name=John Doe" \
    --form "auth_field=email" \
    --form "phone=+17656766467" \
    --form "phone_country=null" \
    --form "city_id=14" \
    --form "accept_terms=" \
    --form "email=john.doe@domain.tld" \
    --form "country_code=US" \
    --form "admin_code=0" \
    --form "price=5000" \
    --form "negotiable=" \
    --form "phone_hidden=" \
    --form "ip_addr=officia" \
    --form "accept_marketing_offers=" \
    --form "is_permanent=" \
    --form "tags=car,automotive,tesla,cyber,truck" \
    --form "package_id=2" \
    --form "payment_method_id=5" \
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpIv9IgF" 
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('category_id', '1');
body.append('post_type_id', '1');
body.append('title', 'John Doe');
body.append('description', 'Beatae placeat atque tempore consequatur animi magni omnis.');
body.append('contact_name', 'John Doe');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', 'null');
body.append('city_id', '14');
body.append('accept_terms', '');
body.append('email', 'john.doe@domain.tld');
body.append('country_code', 'US');
body.append('admin_code', '0');
body.append('price', '5000');
body.append('negotiable', '');
body.append('phone_hidden', '');
body.append('ip_addr', 'officia');
body.append('accept_marketing_offers', '');
body.append('is_permanent', '');
body.append('tags', 'car,automotive,tesla,cyber,truck');
body.append('package_id', '2');
body.append('payment_method_id', '5');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.laraclassifier.local/api/posts/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'category_id',
                'contents' => '1'
            ],
            [
                'name' => 'post_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'title',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'description',
                'contents' => 'Beatae placeat atque tempore consequatur animi magni omnis.'
            ],
            [
                'name' => 'contact_name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => 'null'
            ],
            [
                'name' => 'city_id',
                'contents' => '14'
            ],
            [
                'name' => 'accept_terms',
                'contents' => ''
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'admin_code',
                'contents' => '0'
            ],
            [
                'name' => 'price',
                'contents' => '5000'
            ],
            [
                'name' => 'negotiable',
                'contents' => ''
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'ip_addr',
                'contents' => 'officia'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'is_permanent',
                'contents' => ''
            ],
            [
                'name' => 'tags',
                'contents' => 'car,automotive,tesla,cyber,truck'
            ],
            [
                'name' => 'package_id',
                'contents' => '2'
            ],
            [
                'name' => 'payment_method_id',
                'contents' => '5'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpIv9IgF', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}

URL Parameters

id  integer  

The post/listing's ID.

Body Parameters

category_id  integer  

The category's ID.

post_type_id  integer optional  

The listing type's ID.

title  string  

The listing's title.

description  string  

The listing's description.

contact_name  string  

The listing's author name.

auth_field  string  

The user's auth field ('email' or 'phone').

phone  string optional  

The listing's author mobile number (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

city_id  integer  

The city's ID.

accept_terms  boolean  

Accept the website terms and conditions.

email  string optional  

The listing's author email address (Required when 'auth_field' value is 'email').

country_code  string  

The code of the user's country.

admin_code  string optional  

The administrative division's code.

price  integer  

The price.

negotiable  boolean optional  

Negotiable price or no.

phone_hidden  boolean optional  

Mobile phone number will be hidden in public or no.

ip_addr  string optional  

The listing's author IP address.

accept_marketing_offers  boolean optional  

Accept to receive marketing offers or no.

is_permanent  boolean optional  

Is it permanent post or no.

tags  string optional  

Comma-separated tags list.

pictures  file[]  

The listing's pictures.

package_id  integer  

The package's ID.

payment_method_id  integer optional  

The payment method's ID (Required when the selected package's price is > 0).

Delete listing(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/posts/eligendi" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/eligendi"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/posts/eligendi',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/posts/{ids}

URL Parameters

ids  string  

The ID or comma-separated IDs list of listing(s).

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/2/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/2/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts/2/verify/resend/email',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address is already verified.",
    "result": null,
    "extra": {
        "emailVerificationSent": false
    },
    "error_code": 1
}
 

Request      

GET api/posts/{id}/verify/resend/email

URL Parameters

id  integer  

The ID of the post.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/2/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/2/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts/2/verify/resend/sms',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Phone Number is already verified.",
    "result": null,
    "extra": {
        "phoneVerificationSent": false
    },
    "error_code": 1
}
 

Request      

GET api/posts/{id}/verify/resend/sms

URL Parameters

id  integer  

The ID of the post.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/verify/email/null?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/verify/email/null"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts/verify/email/null',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address verification has failed.",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/posts/verify/{field}/{token?}

URL Parameters

field  string  

The field to verify.

token  string optional  

The verification token.

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

Packages

List packages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/packages?embed=null&sort=-lft" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/packages"
);

const params = {
    "embed": "null",
    "sort": "-lft",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/packages',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> '-lft',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Regular List",
                "short_name": "Free",
                "ribbon": "red",
                "has_badge": 1,
                "price": "0.00",
                "currency_code": "USD",
                "promo_duration": null,
                "duration": null,
                "pictures_limit": null,
                "description": "",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 0,
                "active": 1,
                "parent_id": null,
                "lft": 2,
                "rgt": 3,
                "depth": 0,
                "description_array": [
                    "Keep online for 30 days"
                ],
                "description_string": "Keep online for 30 days"
            },
            {
                "id": 2,
                "name": "Top page Listing",
                "short_name": "Premium",
                "ribbon": "orange",
                "has_badge": 1,
                "price": "7.50",
                "currency_code": "USD",
                "promo_duration": 7,
                "duration": 60,
                "pictures_limit": 10,
                "description": "Featured on the homepage\nFeatured in the category",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 1,
                "active": 1,
                "parent_id": null,
                "lft": 4,
                "rgt": 5,
                "depth": 0,
                "description_array": [
                    "7 days of promotion",
                    "Up to 10 images allowed",
                    "Featured on the homepage",
                    "Featured in the category",
                    "Keep online for 60 days"
                ],
                "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days"
            },
            {
                "id": 3,
                "name": "Top page Ad+",
                "short_name": "Premium+",
                "ribbon": "green",
                "has_badge": 1,
                "price": "9.00",
                "currency_code": "USD",
                "promo_duration": 30,
                "duration": 120,
                "pictures_limit": 15,
                "description": "Featured on the homepage\nFeatured in the category",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 0,
                "active": 1,
                "parent_id": null,
                "lft": 6,
                "rgt": 7,
                "depth": 0,
                "description_array": [
                    "30 days of promotion",
                    "Up to 15 images allowed",
                    "Featured on the homepage",
                    "Featured in the category",
                    "Keep online for 120 days"
                ],
                "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days"
            }
        ]
    }
}
 

Request      

GET api/packages

Query Parameters

embed  string optional  

Comma-separated list of the package relationships for Eager Loading - Possible values: currency.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft.

Get package

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/packages/2?embed=currency" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/packages/2"
);

const params = {
    "embed": "currency",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/packages/2',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'currency',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "name": "Top page Listing",
        "short_name": "Premium",
        "ribbon": "orange",
        "has_badge": 1,
        "price": "7.50",
        "currency_code": "USD",
        "promo_duration": 7,
        "duration": 60,
        "pictures_limit": 10,
        "description": "Featured on the homepage\nFeatured in the category",
        "facebook_ads_duration": 0,
        "google_ads_duration": 0,
        "twitter_ads_duration": 0,
        "linkedin_ads_duration": 0,
        "recommended": 1,
        "active": 1,
        "parent_id": null,
        "lft": 4,
        "rgt": 5,
        "depth": 0,
        "description_array": [
            "7 days of promotion",
            "Up to 10 images allowed",
            "Featured on the homepage",
            "Featured in the category",
            "Keep online for 60 days"
        ],
        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days",
        "currency": {
            "code": "USD",
            "name": "United States Dollar",
            "symbol": "$",
            "html_entities": "&#36;",
            "in_left": 1,
            "decimal_places": 2,
            "decimal_separator": ".",
            "thousand_separator": ","
        }
    }
}
 

Request      

GET api/packages/{id}

URL Parameters

id  integer  

The package's ID.

Query Parameters

embed  string optional  

Comma-separated list of the package relationships for Eager Loading - Possible values: currency.

Pages

List pages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pages?excludedFromFooter=&sort=-lft&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pages"
);

const params = {
    "excludedFromFooter": "0",
    "sort": "-lft",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/pages',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'excludedFromFooter'=> '0',
            'sort'=> '-lft',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 4,
                "parent_id": null,
                "type": "standard",
                "name": "FAQ",
                "slug": "faq",
                "picture": null,
                "title": "Frequently Asked Questions",
                "content": "<p><b>How do I place an ad?</b></p><p>It's very easy to place an ad: click on the button \"Post free Ads\" above right.</p><p><b>What does it cost to advertise?</b></p><p>The publication is 100% free throughout the website.</p><p><b>If I post an listing, will I also get more spam e-mails?</b></p><p>Absolutely not because your email address is not visible on the website.</p><p><b>How long will my listing remain on the website?</b></p><p>In general, an listing is automatically deactivated from the website after 3 months. You will receive an email a week before D-Day and another on the day of deactivation. You have the ability to put them online in the following month by logging into your account on the site. After this delay, your listing will be automatically removed permanently from the website.</p><p><b>I sold my item. How do I delete my ad?</b></p><p>Once your product is sold or leased, log in to your account to remove your listing.</p>",
                "external_link": null,
                "name_color": null,
                "title_color": null,
                "target_blank": 0,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "excluded_from_footer": 0,
                "active": 1,
                "lft": 2,
                "rgt": 3,
                "depth": 1,
                "picture_url": null
            },
            {
                "id": 3,
                "parent_id": null,
                "type": "standard",
                "name": "Anti-Scam",
                "slug": "anti-scam",
                "picture": null,
                "title": "Anti-Scam",
                "content": "<p><b>Protect yourself against Internet fraud!</b></p><p>The vast majority of listings are posted by honest people and trust. So you can do excellent business. Despite this, it is important to follow a few common sense rules following to prevent any attempt to scam.</p><p><b>Our advices</b></p><ul><li>Doing business with people you can meet in person.</li><li>Never send money by Western Union, MoneyGram or other anonymous payment systems.</li><li>Never send money or products abroad.</li><li>Do not accept checks.</li><li>Ask about the person you're dealing with another confirming source name, address and telephone number.</li><li>Keep copies of all correspondence (emails, listings, letters, etc.) and details of the person.</li><li>If a deal seems too good to be true, there is every chance that this is the case. Refrain.</li></ul><p><b>Recognize attempted scam</b></p><ul><li>The majority of scams have one or more of these characteristics:</li><li>The person is abroad or traveling abroad.</li><li>The person refuses to meet you in person.</li><li>Payment is made through Western Union, Money Gram or check.</li><li>The messages are in broken language (English or French or ...).</li><li>The texts seem to be copied and pasted.</li><li>The deal seems to be too good to be true.</li></ul>",
                "external_link": null,
                "name_color": null,
                "title_color": null,
                "target_blank": 0,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "excluded_from_footer": 0,
                "active": 1,
                "lft": 4,
                "rgt": 5,
                "depth": 1,
                "picture_url": null
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/pages?page=1",
            "last": "https://demo.laraclassifier.local/api/pages?page=2",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/pages?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 2,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/pages",
            "per_page": 2,
            "to": 2,
            "total": 4
        }
    }
}
 

Request      

GET api/pages

Query Parameters

excludedFromFooter  boolean optional  

Select or unselect pages that can list in footer.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft, created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get page

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pages/terms" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pages/terms"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/pages/terms',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "parent_id": null,
        "type": "terms",
        "name": "Terms",
        "slug": "terms",
        "picture": null,
        "title": "Terms & Conditions",
        "content": "<h4><b>Definitions</b></h4><p>Each of the terms mentioned below have in these Conditions of Sale LaraClassifier Service (hereinafter the \"Conditions\") the following meanings:</p><ol><li>Announcement&nbsp;: refers to all the elements and data (visual, textual, sound, photographs, drawings), presented by an Advertiser editorial under his sole responsibility, in order to buy, rent or sell a product or service and broadcast on the Website and Mobile Site.</li><li>Advertiser&nbsp;: means any natural or legal person, a major, established in France, holds an account and having submitted an announcement, from it, on the Website. Any Advertiser must be connected to the Personal Account for deposit and or manage its listings. Add first deposit automatically entails the establishment of a Personal Account to the Advertiser.</li><li>Personal Account&nbsp;: refers to the free space than any Advertiser must create and which it should connect from the Website to disseminate, manage and view its listings.</li><li>LaraClassifier&nbsp;: means the company that publishes and operates the Website and Mobile Site {YourCompany}, registered at the Trade and Companies Register of {YourCity} under the number {YourCompany Registration Number} whose registered office is at {YourCompany Address}.</li><li>Customer Service&nbsp;: LaraClassifier means the department to which the Advertiser may obtain further information. This service can be contacted via email by clicking the link on the Website and Mobile Site.</li><li>LaraClassifier Service&nbsp;: LaraClassifier means the services made available to Users and Advertisers on the Website and Mobile Site.</li><li>Website&nbsp;: means the website operated by LaraClassifier accessed mainly from the URL <a href=\"https://laraclassifier.com\">https://laraclassifier.com</a> and allowing Users and Advertisers to access the Service via internet LaraClassifier.</li><li>Mobile Site&nbsp;: is the mobile site operated by LaraClassifier accessible from the URL <a href=\"https://laraclassifier.com\">https://laraclassifier.com</a> and allowing Users and Advertisers to access via their mobile phone service {YourSiteName}.</li><li>User&nbsp;: any visitor with access to LaraClassifier Service via the Website and Mobile Site and Consultant Service LaraClassifier accessible from different media.</li></ol><h4><b>Subject</b></h4><p>These Terms and Conditions Of Use establish the contractual conditions applicable to any subscription by an Advertiser connected to its Personal Account from the Website and Mobile Site.<br></p><h4><b>Acceptance</b></h4><p>Any use of the website by an Advertiser is full acceptance of the current Terms.<br></p><h4><b>Responsibility</b></h4><p>Responsibility for LaraClassifier can not be held liable for non-performance or improper performance of due control, either because of the Advertiser, or a case of major force.<br></p><h4><b>Modification of these terms</b></h4><p>LaraClassifier reserves the right, at any time, to modify all or part of the Terms and Conditions.</p><p>Advertisers are advised to consult the Terms to be aware of the changes.</p><h4><b>Miscellaneous</b></h4><p>If part of the Terms should be illegal, invalid or unenforceable for any reason whatsoever, the provisions in question would be deemed unwritten, without questioning the validity of the remaining provisions will continue to apply between Advertisers and LaraClassifier.</p><p>Any complaints should be addressed to Customer Service LaraClassifier.</p>",
        "external_link": null,
        "name_color": null,
        "title_color": null,
        "target_blank": 0,
        "seo_title": "",
        "seo_description": "",
        "seo_keywords": "",
        "excluded_from_footer": 0,
        "active": 1,
        "lft": 6,
        "rgt": 7,
        "depth": 1,
        "picture_url": null
    }
}
 

Request      

GET api/pages/{slugOrId}

URL Parameters

slugOrId  string  

The slug or ID of the page.

Payment Methods

List payment methods

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/paymentMethods?countryCode=US&sort=-lft" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/paymentMethods"
);

const params = {
    "countryCode": "US",
    "sort": "-lft",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/paymentMethods',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'countryCode'=> 'US',
            'sort'=> '-lft',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 5,
                "name": "offlinepayment",
                "display_name": "Offline Payment",
                "description": null,
                "has_ccbox": 0,
                "is_compatible_api": 1,
                "countries": "",
                "active": 1,
                "lft": 5,
                "rgt": 5,
                "depth": 1,
                "parent_id": 0
            }
        ]
    }
}
 

Request      

GET api/paymentMethods

Query Parameters

countryCode  string optional  

Country code. Select only the payment methods related to a country.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft.

Get payment method

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/paymentMethods/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/paymentMethods/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/paymentMethods/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Payment method not found",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/paymentMethods/{id}

URL Parameters

id  integer  

Can be the ID (int) or name (string) of the payment method.

Payments

List payments

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments?embed=null&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments"
);

const params = {
    "embed": "null",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/payments',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> 'created_at',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/payments

Query Parameters

embed  string optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: post,paymentMethod,package,currency.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get payment

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments/2?embed=null" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments/2"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/payments/2',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/payments/{id}

URL Parameters

id  integer  

The payment's ID.

Query Parameters

embed  string optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: post,paymentMethod,package,currency.

Store payment

requires authentication

Note: This endpoint is only available for the multi steps post edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/payments?package=19" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"country_code\": \"US\",
    \"post_id\": 2,
    \"package_id\": 16,
    \"payment_method_id\": 5
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments"
);

const params = {
    "package": "19",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "country_code": "US",
    "post_id": 2,
    "package_id": 16,
    "payment_method_id": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/payments',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'package'=> '19',
        ],
        'json' => [
            'country_code' => 'US',
            'post_id' => 2,
            'package_id' => 16,
            'payment_method_id' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/payments

Query Parameters

package  integer optional  

Selected package ID.

Body Parameters

country_code  string  

The code of the user's country.

post_id  integer  

The post's ID.

package_id  integer  

The package's ID (Auto filled when the query parameter 'package' is set).

payment_method_id  integer optional  

The payment method's ID (required when the selected package's price is > 0).

Pictures

Get picture

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pictures/298?embed=null" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/298"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/pictures/298',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 298,
        "post_id": 91,
        "filename": "files/us/91/f7e71af1ea921ea04ffe31ef53193bea.jpg",
        "mime_type": "image/jpeg",
        "position": 3,
        "active": 1,
        "url": {
            "full": "https://demo.laraclassifier.local/storage/files/us/91/thumb-816x460-f7e71af1ea921ea04ffe31ef53193bea.jpg",
            "small": "https://demo.laraclassifier.local/storage/files/us/91/thumb-120x90-f7e71af1ea921ea04ffe31ef53193bea.jpg",
            "medium": "https://demo.laraclassifier.local/storage/files/us/91/thumb-320x240-f7e71af1ea921ea04ffe31ef53193bea.jpg",
            "big": "https://demo.laraclassifier.local/storage/files/us/91/thumb-816x460-f7e71af1ea921ea04ffe31ef53193bea.jpg"
        }
    }
}
 

Request      

GET api/pictures/{id}

URL Parameters

id  integer  

The picture's ID.

Query Parameters

embed  string optional  

The list of the picture relationships separated by comma for Eager Loading.

Store picture

requires authentication

Note: This endpoint is only available for the multi steps post edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/pictures" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "country_code=US" \
    --form "count_packages=3" \
    --form "count_payment_methods=1" \
    --form "post_id=2" \
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php2940cj" 
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('country_code', 'US');
body.append('count_packages', '3');
body.append('count_payment_methods', '1');
body.append('post_id', '2');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/pictures',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'count_packages',
                'contents' => '3'
            ],
            [
                'name' => 'count_payment_methods',
                'contents' => '1'
            ],
            [
                'name' => 'post_id',
                'contents' => '2'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php2940cj', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/pictures

Body Parameters

country_code  string  

The code of the user's country.

count_packages  integer  

The number of available packages.

count_payment_methods  integer  

The number of available payment methods.

post_id  integer  

The post's ID.

pictures  file[] optional  

The files to upload.

Delete picture

requires authentication

Note: This endpoint is only available for the multi steps post edition. For newly created listings, the post's ID need to be added in the request input with the key 'new_post_id'. The 'new_post_id' and 'new_post_tmp_token' fields need to be removed or unset during the post edition steps.

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/pictures/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"post_id\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "post_id": 2
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/pictures/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'post_id' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/pictures/{id}

URL Parameters

id  integer  

The ID of the picture.

Body Parameters

post_id  integer  

The post's ID.

Reorder pictures

requires authentication

Note: This endpoint is only available for the multi steps post edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/pictures/reorder" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --header "X-Action: bulk" \
    --data "{
    \"post_id\": 2,
    \"body\": \"ut\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/reorder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
    "X-Action": "bulk",
};

let body = {
    "post_id": 2,
    "body": "ut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/pictures/reorder',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
            'X-Action' => 'bulk',
        ],
        'json' => [
            'post_id' => 2,
            'body' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/pictures/reorder

Body Parameters

post_id  integer  

The post's ID.

body  string  

Encoded json of the new pictures' positions array [['id' => 2, 'position' => 1], ['id' => 1, 'position' => 2], ...]

List pictures

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/2/pictures?embed=null&postId=1&latest=&sort=-position&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/2/pictures"
);

const params = {
    "embed": "null",
    "postId": "1",
    "latest": "0",
    "sort": "-position",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/posts/2/pictures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'postId'=> '1',
            'latest'=> '0',
            'sort'=> '-position',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 3,
                "post_id": 1,
                "filename": "files/us/1/8f202ea950c8f5df92d67eed44fdebf2.jpg",
                "mime_type": "image/jpeg",
                "position": 2,
                "active": 1,
                "url": {
                    "full": "https://demo.laraclassifier.local/storage/files/us/1/thumb-816x460-8f202ea950c8f5df92d67eed44fdebf2.jpg",
                    "small": "https://demo.laraclassifier.local/storage/files/us/1/thumb-120x90-8f202ea950c8f5df92d67eed44fdebf2.jpg",
                    "medium": "https://demo.laraclassifier.local/storage/files/us/1/thumb-320x240-8f202ea950c8f5df92d67eed44fdebf2.jpg",
                    "big": "https://demo.laraclassifier.local/storage/files/us/1/thumb-816x460-8f202ea950c8f5df92d67eed44fdebf2.jpg"
                }
            },
            {
                "id": 1,
                "post_id": 1,
                "filename": "files/us/1/fb32b5a55e210cfa053e8171cea5b377.jpg",
                "mime_type": "image/jpeg",
                "position": 3,
                "active": 1,
                "url": {
                    "full": "https://demo.laraclassifier.local/storage/files/us/1/thumb-816x460-fb32b5a55e210cfa053e8171cea5b377.jpg",
                    "small": "https://demo.laraclassifier.local/storage/files/us/1/thumb-120x90-fb32b5a55e210cfa053e8171cea5b377.jpg",
                    "medium": "https://demo.laraclassifier.local/storage/files/us/1/thumb-320x240-fb32b5a55e210cfa053e8171cea5b377.jpg",
                    "big": "https://demo.laraclassifier.local/storage/files/us/1/thumb-816x460-fb32b5a55e210cfa053e8171cea5b377.jpg"
                }
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/posts/2/pictures?page=1",
            "last": "https://demo.laraclassifier.local/api/posts/2/pictures?page=3",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/posts/2/pictures?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 3,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts/2/pictures?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts/2/pictures?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts/2/pictures?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts/2/pictures?page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/posts/2/pictures",
            "per_page": 2,
            "to": 2,
            "total": 5
        }
    }
}
 

Request      

GET api/posts/{postId}/pictures

URL Parameters

postId  integer  

Query Parameters

embed  string optional  

The list of the picture relationships separated by comma for Eager Loading. Possible values: post.

postId  integer optional  

List of pictures related to a post (using the post ID).

latest  boolean optional  

Get only the first picture after ordering (as object instead of collection).

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: position, created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Saved Posts

Store/Delete saved listing

requires authentication

Save a post/listing in favorite, or remove it from favorite.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/savedPosts" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"post_id\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "post_id": 2
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/savedPosts',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'post_id' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/savedPosts

Body Parameters

post_id  integer  

The post/listing's ID.

List saved listings

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedPosts?country_code=US&embed=null&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts"
);

const params = {
    "country_code": "US",
    "embed": "null",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/savedPosts',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'country_code'=> 'US',
            'embed'=> 'null',
            'sort'=> 'created_at',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/savedPosts

Query Parameters

country_code  string  

The code of the user's country.

embed  string optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: post,city,pictures,user.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Delete saved listing(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/savedPosts/ipsa" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts/ipsa"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/savedPosts/ipsa',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/savedPosts/{ids}

URL Parameters

ids  string  

The ID or comma-separated IDs list of saved post/listing(s).

Saved Searches

Store/Delete saved search

requires authentication

Save a search result in favorite, or remove it from favorite.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/savedSearches" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"url\": \"https:\\/\\/demo.laraclassifier.com\\/search\\/?q=test&l=\",
    \"count_posts\": 29
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "url": "https:\/\/demo.laraclassifier.com\/search\/?q=test&l=",
    "count_posts": 29
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/savedSearches',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'url' => 'https://demo.laraclassifier.com/search/?q=test&l=',
            'count_posts' => 29,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/savedSearches

Body Parameters

url  string  

Search URL to save.

count_posts  integer  

The number of posts found for the URL.

List saved searches

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedSearches?embed=null&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches"
);

const params = {
    "embed": "null",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/savedSearches',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> 'created_at',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/savedSearches

Query Parameters

embed  string optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: user,country.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get saved search

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedSearches/1?embed=null" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches/1"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/savedSearches/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/savedSearches/{id}

URL Parameters

id  integer  

The ID of the saved search.

Query Parameters

embed  string optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: user,country,pictures,postType,category,city,country.

Delete saved search(es)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/savedSearches/esse" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches/esse"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/savedSearches/esse',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/savedSearches/{ids}

URL Parameters

ids  string  

The ID or comma-separated IDs list of saved search(es).

Settings

List settings

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/settings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/settings"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/settings',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "app": {
            "app_name": "LaraClassifier",
            "slogan": "Classified Ads Web Application",
            "logo": "app/default/logo.png",
            "favicon": "app/default/ico/favicon.png",
            "show_languages_flags": "1",
            "show_countries_charts": "1",
            "latest_entries_limit": "10",
            "logo_dark": "app/default/backend/logo_dark.png",
            "logo_light": "app/default/backend/logo_light.png",
            "login_bg_image": "app/default/backend/login_bg_image.jpg",
            "name": "LaraClassifier",
            "date_format": "YYYY-MM-DD",
            "datetime_format": "YYYY-MM-DD HH:mm",
            "vector_charts_type": "morris_bar",
            "general_settings_as_submenu_in_sidebar": "1",
            "logo_url": "https://demo.laraclassifier.local/storage/app/default/logo.png",
            "favicon_url": "https://demo.laraclassifier.local/storage/app/default/ico/favicon.png",
            "logo_dark_url": "https://demo.laraclassifier.local/storage/app/default/backend/logo_dark.png",
            "logo_light_url": "https://demo.laraclassifier.local/storage/app/default/backend/logo_light.png"
        },
        "style": {
            "skin": "blue",
            "page_width": "1200",
            "header_sticky": "1",
            "header_height": "60",
            "header_bottom_border_color": "#E8E8E8",
            "login_bg_image": "app/default/backend/login_bg_image.jpg",
            "admin_logo_bg": "skin3",
            "admin_navbar_bg": "skin6",
            "admin_sidebar_type": "full",
            "admin_sidebar_bg": "skin5",
            "admin_sidebar_position": "1",
            "admin_header_position": "1",
            "logo_width": "216",
            "logo_height": "40",
            "logo_aspect_ratio": "1",
            "login_bg_image_url": "https://demo.laraclassifier.local/storage/app/default/backend/thumb-2500x2500-login_bg_image.jpg"
        },
        "list": {
            "display_browse_listings_link": "1",
            "display_mode": "make-grid",
            "grid_view_cols": "4",
            "items_per_page": "16",
            "left_sidebar": "1",
            "show_cats_in_top": "1",
            "show_listings_tags": "1",
            "fake_locations_results": "1",
            "elapsed_time_from_now": "1",
            "cities_extended_searches": "1",
            "search_distance_max": "500",
            "search_distance_default": "50",
            "search_distance_interval": "100",
            "max_price": "10000",
            "price_slider_step": "50",
            "show_category_icon": "7",
            "distance_calculation_formula": "ST_Distance_Sphere"
        },
        "single": {
            "publication_form_type": "1",
            "picture_mandatory": "1",
            "pictures_limit": "6",
            "tags_limit": "15",
            "guests_can_post_listing": "1",
            "pricing_page_enabled": "2",
            "show_listing_types": "1",
            "enable_post_uniqueness": "1",
            "wysiwyg_editor": "tinymce",
            "remove_url_before": "1",
            "remove_url_after": "1",
            "remove_email_after": "1",
            "remove_phone_after": "1",
            "hide_phone_number": "1",
            "show_security_tips": "1",
            "elapsed_time_from_now": "1",
            "guests_can_contact_authors": "1",
            "pictures_slider": "swiper-horizontal",
            "similar_listings": "1",
            "show_listing_on_googlemap": "1",
            "activation_facebook_comments": "1",
            "city_selection": "modal",
            "title_min_length": "2",
            "title_max_length": "150",
            "description_min_length": "5",
            "description_max_length": "6000",
            "tags_min_length": "2",
            "tags_max_length": "30",
            "similar_listings_limit": "12",
            "guests_can_post_listings": "1"
        },
        "mail": {
            "driver": "smtp",
            "sendmail_path": "/usr/sbin/sendmail -bs",
            "sendmail_email_sender": "noreply@laraclassifier.com",
            "smtp_host": "127.0.0.1",
            "smtp_port": "1025",
            "smtp_email_sender": "noreply@laraclassifier.com",
            "mailgun_email_sender": "noreply@laraclassifier.com",
            "postmark_email_sender": "noreply@laraclassifier.com",
            "ses_email_sender": "noreply@laraclassifier.com",
            "mandrill_email_sender": "noreply@laraclassifier.com",
            "sparkpost_email_sender": "noreply@laraclassifier.com",
            "email_verification": "1",
            "confirmation": "1"
        },
        "sms": {
            "phone_of_countries": "all",
            "driver": "twilio",
            "default_auth_field": "email"
        },
        "upload": {
            "file_types": "pdf,doc,docx,word,rtf,rtx,ppt,pptx,odt,odp,wps,jpeg,jpg,bmp,png",
            "max_file_size": "1500",
            "image_types": "jpg,jpeg,gif,png",
            "image_quality": "90",
            "max_image_size": "1500",
            "img_resize_width": "1500",
            "img_resize_height": "1500",
            "img_resize_ratio": "1",
            "img_resize_logo_width": "250",
            "img_resize_logo_height": "50",
            "img_resize_logo_ratio": "1",
            "img_resize_cat_width": "70",
            "img_resize_cat_height": "70",
            "img_resize_cat_ratio": "1",
            "img_resize_small_resize_type": "2",
            "img_resize_small_width": "120",
            "img_resize_small_height": "90",
            "img_resize_small_ratio": "1",
            "img_resize_small_position": "center",
            "img_resize_small_bg_color": "FFFFFF",
            "img_resize_medium_resize_type": "1",
            "img_resize_medium_width": "320",
            "img_resize_medium_height": "240",
            "img_resize_medium_ratio": "1",
            "img_resize_medium_position": "center",
            "img_resize_medium_bg_color": "FFFFFF",
            "img_resize_big_width": "816",
            "img_resize_big_height": "460",
            "img_resize_big_ratio": "1",
            "img_resize_big_upsize": "1",
            "img_resize_big_position": "center",
            "img_resize_big_bg_color": "FFFFFF"
        },
        "geo_location": {
            "default_country_code": "US",
            "show_country_flag": "1",
            "driver": "ipapi"
        },
        "security": {
            "csrf_protection": "1",
            "login_open_in_modal": "1",
            "login_max_attempts": "5",
            "login_decay_minutes": "15",
            "captcha_delay": "1500",
            "recaptcha_version": "v2",
            "email_validator_rfc": "1",
            "email_validator_dns": "1",
            "email_validator_spoof": "1",
            "email_validator_filter": "1",
            "password_min_length": "6",
            "password_max_length": "60"
        },
        "social_auth": {
            "social_login_activation": "1"
        },
        "social_link": {
            "facebook_page_url": "#",
            "twitter_url": "#",
            "linkedin_url": "#",
            "pinterest_url": "#",
            "instagram_url": "#",
            "tiktok_url": "#"
        },
        "optimization": {
            "cache_driver": "file",
            "cache_expiration": "86400",
            "memcached_servers_1_host": "127.0.0.1",
            "memcached_servers_1_port": "11211",
            "redis_client": "predis",
            "redis_cluster": "predis",
            "redis_host": "127.0.0.1",
            "redis_password": "letmein",
            "redis_port": "6379"
        },
        "seo": {
            "google_site_verification": "0Phxx3nIjQwv96P7ysyMT18m1ePCzUJ7TskbZEyj_Ek",
            "robots_txt": "User-agent: *\nDisallow: /",
            "no_index_all": "1",
            "listing_permalink": "{slug}/{hashableId}",
            "listing_hashed_id_enabled": "1",
            "listing_hashed_id_seo_redirection": "1"
        },
        "other": {
            "cookie_consent_enabled": "1",
            "show_tips_messages": "1",
            "googlemaps_key": "AIzaSyD31p7CzP8EQHYBcquZtPm_el66o1xB0HE",
            "simditor_wysiwyg": "1",
            "cookie_expiration": "86400",
            "wysiwyg_editor": "tinymce"
        },
        "cron": {
            "unactivated_listings_expiration": "30",
            "activated_listings_expiration": "30",
            "archived_listings_expiration": "7",
            "manually_archived_listings_expiration": "90"
        },
        "footer": {
            "hide_payment_plugins_logos": "1"
        },
        "backup": {
            "disable_notifications": "1",
            "keep_all_backups_for_days": "7",
            "keep_daily_backups_for_days": "16",
            "keep_weekly_backups_for_weeks": "8",
            "keep_monthly_backups_for_months": "4",
            "keep_yearly_backups_for_years": "2",
            "maximum_storage_in_megabytes": "5000"
        },
        "watermark": {
            "watermark": "app/logo/watermark-63719ec2e989a.png",
            "width": "150",
            "height": "150",
            "percentage_reduction": "80",
            "opacity": "50",
            "position": "bottom-right",
            "position_x": "20",
            "position_y": "20"
        }
    }
}
 

Request      

GET api/settings

Get setting

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/settings/app" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/settings/app"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/settings/app',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "app_name": "LaraClassifier",
        "slogan": "Classified Ads Web Application",
        "logo": "app/default/logo.png",
        "favicon": "app/default/ico/favicon.png",
        "show_languages_flags": "1",
        "show_countries_charts": "1",
        "latest_entries_limit": "10",
        "logo_dark": "app/default/backend/logo_dark.png",
        "logo_light": "app/default/backend/logo_light.png",
        "login_bg_image": "app/default/backend/login_bg_image.jpg",
        "name": "LaraClassifier",
        "date_format": "YYYY-MM-DD",
        "datetime_format": "YYYY-MM-DD HH:mm",
        "vector_charts_type": "morris_bar",
        "general_settings_as_submenu_in_sidebar": "1",
        "logo_url": "https://demo.laraclassifier.local/storage/app/default/logo.png",
        "favicon_url": "https://demo.laraclassifier.local/storage/app/default/ico/favicon.png",
        "logo_dark_url": "https://demo.laraclassifier.local/storage/app/default/backend/logo_dark.png",
        "logo_light_url": "https://demo.laraclassifier.local/storage/app/default/backend/logo_light.png"
    }
}
 

Request      

GET api/settings/{key}

URL Parameters

key  string  

The setting's key.

Social Auth

Get target URL

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth/null" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/null"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/auth/null',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Page Not Found."
}
 

Request      

GET api/auth/{provider}

URL Parameters

provider  string  

The provider's name - Possible values: facebook, linkedin, or google.

Get user info

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth/null/callback" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/null/callback"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/auth/null/callback',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Page Not Found."
}
 

Request      

GET api/auth/{provider}/callback

URL Parameters

provider  string  

The provider's name - Possible values: facebook, linkedin, or google.

Threads

Store thread

Start a conversation. Creation of a new thread.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/threads" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --form "name=John Doe" \
    --form "auth_field=email" \
    --form "email=john.doe@domain.tld" \
    --form "phone=delectus" \
    --form "phone_country=null" \
    --form "body=Modi temporibus voluptas expedita voluptatibus voluptas veniam." \
    --form "post_id=2" \
    --form "captcha_key=qui" \
    --form "filename=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php7tRwoH" 
const url = new URL(
    "https://demo.laraclassifier.local/api/threads"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
};

const body = new FormData();
body.append('name', 'John Doe');
body.append('auth_field', 'email');
body.append('email', 'john.doe@domain.tld');
body.append('phone', 'delectus');
body.append('phone_country', 'null');
body.append('body', 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.');
body.append('post_id', '2');
body.append('captcha_key', 'qui');
body.append('filename', document.querySelector('input[name="filename"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/threads',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'phone',
                'contents' => 'delectus'
            ],
            [
                'name' => 'phone_country',
                'contents' => 'null'
            ],
            [
                'name' => 'body',
                'contents' => 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.'
            ],
            [
                'name' => 'post_id',
                'contents' => '2'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'qui'
            ],
            [
                'name' => 'filename',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php7tRwoH', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/threads

Body Parameters

name  string  

The thread's creator name.

auth_field  string  

The user's auth field ('email' or 'phone').

email  string optional  

The thread's creator email address (Required when 'auth_field' value is 'email').

phone  string optional  

The thread's creator mobile phone number (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

body  string  

The name of the user.

post_id  integer  

The related post ID.

filename  file optional  

The thread attached file.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

List threads

requires authentication

Get all logged user's threads. Filters:

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads?filter=unread&embed=null&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads"
);

const params = {
    "filter": "unread",
    "embed": "null",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/threads',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'filter'=> 'unread',
            'embed'=> 'null',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/threads

Query Parameters

filter  string optional  

Filter for the list - Possible value: unread, started or important.

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: post.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get thread

requires authentication

Get a thread (owned by the logged user) details

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/8?embed=null" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/8"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/threads/8',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/threads/{id}

URL Parameters

id  integer  

The thread's ID.

Query Parameters

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,post,messages,participants.

Update thread

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/threads/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "body=Modi temporibus voluptas expedita voluptatibus voluptas veniam." \
    --form "filename=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php9dhbe6" 
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('body', 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.');
body.append('filename', document.querySelector('input[name="filename"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.laraclassifier.local/api/threads/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'body',
                'contents' => 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.'
            ],
            [
                'name' => 'filename',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php9dhbe6', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/threads/{id}

URL Parameters

id  integer  

The ID of the thread.

Body Parameters

body  string  

The name of the user.

filename  file optional  

The thread attached file.

Delete thread(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/threads/sunt" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/sunt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/threads/sunt',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/threads/{ids}

URL Parameters

ids  string  

The ID or comma-separated IDs list of thread(s).

Bulk updates

requires authentication

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/threads/bulkUpdate/ut?type=temporibus" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/bulkUpdate/ut"
);

const params = {
    "type": "temporibus",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/threads/bulkUpdate/ut',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'type'=> 'temporibus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/threads/bulkUpdate/{ids?}

URL Parameters

ids  string  

The ID or comma-separated IDs list of thread(s).

Query Parameters

type  string  

The type of action to execute (markAsRead, markAsUnread, markAsImportant, markAsNotImportant or markAllAsRead).

List messages

requires authentication

Get all thread's messages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/293/messages?embed=null&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/293/messages"
);

const params = {
    "embed": "null",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/threads/293/messages',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
            'sort'=> 'created_at',
            'perPage'=> '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/threads/{threadId}/messages

URL Parameters

threadId  integer  

The thread's ID.

Query Parameters

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user.

sort  string optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at.

perPage  integer optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100.

Get message

requires authentication

Get a thread's message (owned by the logged user) details

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/293/messages/3545?embed=null" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/293/messages/3545"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/threads/293/messages/3545',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/threads/{threadId}/messages/{id}

URL Parameters

threadId  integer  

The thread's ID.

id  integer  

The thread's message's ID.

Query Parameters

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: thread,user.

Users

List genders

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/genders" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/genders"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/genders',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Mr"
            },
            {
                "id": 2,
                "name": "Mrs"
            }
        ]
    }
}
 

Request      

GET api/genders

Get gender

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/genders/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/genders/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/genders/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "Mr"
    }
}
 

Request      

GET api/genders/{id}

URL Parameters

id  integer  

The gender's ID.

List user types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/userTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/userTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/userTypes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Professional"
            },
            {
                "id": 2,
                "name": "Individual"
            }
        ]
    }
}
 

Request      

GET api/userTypes

Get user type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/userTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/userTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/userTypes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "Professional"
    }
}
 

Request      

GET api/userTypes/{id}

URL Parameters

id  integer  

The user type's ID.

List users

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthorized",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/users

Get user

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/3?embed=null" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/3"
);

const params = {
    "embed": "null",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed'=> 'null',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 3,
        "name": "User Demo",
        "username": null,
        "updated_at": "2022-11-28T09:06:29.000000Z",
        "original_updated_at": "2022-11-28 09:06:29",
        "original_last_activity": null,
        "created_at_formatted": "Jun 25th, 2022 at 18:21",
        "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/3/thumb-800x800-6a8f44ed03c2a2c7c77339d263a0b09e.jpg",
        "p_is_online": false,
        "country_flag_url": "https://demo.laraclassifier.local/images/flags/16/us.png"
    }
}
 

Request      

GET api/users/{id}

URL Parameters

id  integer  

The user's ID.

Query Parameters

embed  string optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: country,userType,gender,countPostsViews,countPosts,countSavedPosts.

Store user

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/users" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "country_code=US" \
    --form "language_code=en" \
    --form "user_type_id=1" \
    --form "gender_id=1" \
    --form "name=John Doe" \
    --form "auth_field=email" \
    --form "email=john.doe@domain.tld" \
    --form "phone=+17656766467" \
    --form "phone_country=null" \
    --form "phone_hidden=" \
    --form "username=john_doe" \
    --form "password=js!X07$z61hLA" \
    --form "password_confirmation=js!X07$z61hLA" \
    --form "disable_comments=1" \
    --form "ip_addr=et" \
    --form "accept_terms=1" \
    --form "accept_marketing_offers=" \
    --form "time_zone=America/New_York" \
    --form "captcha_key=porro" \
    --form "photo=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpbcAuL6" 
const url = new URL(
    "https://demo.laraclassifier.local/api/users"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('country_code', 'US');
body.append('language_code', 'en');
body.append('user_type_id', '1');
body.append('gender_id', '1');
body.append('name', 'John Doe');
body.append('auth_field', 'email');
body.append('email', 'john.doe@domain.tld');
body.append('phone', '+17656766467');
body.append('phone_country', 'null');
body.append('phone_hidden', '');
body.append('username', 'john_doe');
body.append('password', 'js!X07$z61hLA');
body.append('password_confirmation', 'js!X07$z61hLA');
body.append('disable_comments', '1');
body.append('ip_addr', 'et');
body.append('accept_terms', '1');
body.append('accept_marketing_offers', '');
body.append('time_zone', 'America/New_York');
body.append('captcha_key', 'porro');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.laraclassifier.local/api/users',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'language_code',
                'contents' => 'en'
            ],
            [
                'name' => 'user_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'gender_id',
                'contents' => '1'
            ],
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => 'null'
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'username',
                'contents' => 'john_doe'
            ],
            [
                'name' => 'password',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'password_confirmation',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'disable_comments',
                'contents' => '1'
            ],
            [
                'name' => 'ip_addr',
                'contents' => 'et'
            ],
            [
                'name' => 'accept_terms',
                'contents' => '1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'time_zone',
                'contents' => 'America/New_York'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'porro'
            ],
            [
                'name' => 'photo',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpbcAuL6', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/users

Body Parameters

country_code  string  

The code of the user's country.

language_code  string optional  

The code of the user's spoken language.

user_type_id  integer optional  

The ID of user type.

gender_id  integer optional  

The ID of gender.

name  string  

The name of the user.

photo  file optional  

The file of user photo.

auth_field  string  

The user's auth field ('email' or 'phone').

email  string optional  

The user's email address (Required when 'auth_field' value is 'email').

phone  string optional  

The mobile phone number of the user (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

phone_hidden  boolean optional  

Field to hide or show the user phone number in public.

username  string optional  

The user's username.

password  string  

The user's password.

password_confirmation  string  

The confirmation of the user's password.

disable_comments  boolean optional  

Field to disable or enable comments on the user's listings.

ip_addr  string  

The user's IP address.

accept_terms  boolean  

Field to allow user to accept or not the website terms.

accept_marketing_offers  boolean optional  

Field to allow user to accept or not marketing offers sending.

time_zone  string optional  

The user's time zone.

captcha_key  string optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).

User's mini stats

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/3/stats" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/3/stats"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users/3/stats',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/users/{id}/stats

URL Parameters

id  integer  

The user's ID.

Update user

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "country_code=US" \
    --form "language_code=en" \
    --form "user_type_id=1" \
    --form "gender_id=1" \
    --form "name=John Doe" \
    --form "remove_photo=0" \
    --form "auth_field=email" \
    --form "email=john.doe@domain.tld" \
    --form "phone=+17656766467" \
    --form "phone_country=null" \
    --form "phone_hidden=" \
    --form "username=john_doe" \
    --form "password=js!X07$z61hLA" \
    --form "password_confirmation=js!X07$z61hLA" \
    --form "disable_comments=1" \
    --form "ip_addr=nisi" \
    --form "accept_terms=1" \
    --form "accept_marketing_offers=" \
    --form "time_zone=America/New_York" \
    --form "photo=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpmQZZEs" 
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('country_code', 'US');
body.append('language_code', 'en');
body.append('user_type_id', '1');
body.append('gender_id', '1');
body.append('name', 'John Doe');
body.append('remove_photo', '0');
body.append('auth_field', 'email');
body.append('email', 'john.doe@domain.tld');
body.append('phone', '+17656766467');
body.append('phone_country', 'null');
body.append('phone_hidden', '');
body.append('username', 'john_doe');
body.append('password', 'js!X07$z61hLA');
body.append('password_confirmation', 'js!X07$z61hLA');
body.append('disable_comments', '1');
body.append('ip_addr', 'nisi');
body.append('accept_terms', '1');
body.append('accept_marketing_offers', '');
body.append('time_zone', 'America/New_York');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.laraclassifier.local/api/users/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'language_code',
                'contents' => 'en'
            ],
            [
                'name' => 'user_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'gender_id',
                'contents' => '1'
            ],
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'remove_photo',
                'contents' => '0'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => 'null'
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'username',
                'contents' => 'john_doe'
            ],
            [
                'name' => 'password',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'password_confirmation',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'disable_comments',
                'contents' => '1'
            ],
            [
                'name' => 'ip_addr',
                'contents' => 'nisi'
            ],
            [
                'name' => 'accept_terms',
                'contents' => '1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'time_zone',
                'contents' => 'America/New_York'
            ],
            [
                'name' => 'photo',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpmQZZEs', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/users/{id}

URL Parameters

id  integer  

The ID of the user.

Body Parameters

country_code  string  

The code of the user's country.

language_code  string optional  

The code of the user's spoken language.

user_type_id  integer optional  

The ID of user type.

gender_id  integer optional  

The ID of gender.

name  string  

The name of the user.

photo  file optional  

The file of user photo.

remove_photo  integer optional  

Enable the user photo removal ('0' or '1'). When its value is '1' the user's photo file will be removed and the 'photo' column will be empty.

auth_field  string  

The user's auth field ('email' or 'phone').

email  string  

The user's email address (Required when 'auth_field' value is 'email').

phone  string optional  

The mobile phone number of the user (Required when 'auth_field' value is 'phone').

phone_country  string  

The user's phone number's country code (Required when the 'phone' field is filled).

phone_hidden  boolean optional  

Field to hide or show the user phone number in public.

username  string optional  

The user's username.

password  string  

The user's password.

password_confirmation  string  

The confirmation of the user's password.

disable_comments  boolean optional  

Field to disable or enable comments on the user's listings.

ip_addr  string  

The user's IP address.

accept_terms  boolean  

Field to allow user to accept or not the website terms.

accept_marketing_offers  boolean optional  

Field to allow user to accept or not marketing offers sending.

time_zone  string optional  

The user's time zone.

Delete user

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.laraclassifier.local/api/users/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/users/{id}

URL Parameters

id  integer  

The ID of the user.

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/1/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users/1/verify/resend/email',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address is already verified.",
    "result": null,
    "extra": {
        "emailVerificationSent": false
    },
    "error_code": 1
}
 

Request      

GET api/users/{id}/verify/resend/email

URL Parameters

id  integer  

The ID of the user.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/1/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users/1/verify/resend/sms',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Phone Number is already verified.",
    "result": null,
    "extra": {
        "phoneVerificationSent": false
    },
    "error_code": 1
}
 

Request      

GET api/users/{id}/verify/resend/sms

URL Parameters

id  integer  

The ID of the user.

entityId  integer optional  

The entity/model identifier (ID).

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/verify/email/null?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/verify/email/null"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.laraclassifier.local/api/users/verify/email/null',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug'=> 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address verification has failed.",
    "result": null,
    "error_code": 1
}
 

Request      

GET api/users/verify/{field}/{token?}

URL Parameters

field  string  

The field to verify.

token  string optional  

The verification token.

Query Parameters

entitySlug  string optional  

The slug of the entity to verify ('users' or 'posts').