MENU navbar-image

Introduction

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

Authenticating requests

To authenticate requests, include 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 run login API.

Affirmation

List

requires authentication

Get the list of affirmation

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categoryaffirmation?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryaffirmation"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryaffirmation';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categoryaffirmation

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the affirmation

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/categoryaffirmation" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"affirmation_text\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryaffirmation"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "affirmation_text": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryaffirmation';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'affirmation_text' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/categoryaffirmation

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the affirmation for update.

affirmation_text   string   

Affirmation text of the affirmation.

Details

requires authentication

get the details of the affirmation

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categoryaffirmation/quo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryaffirmation/quo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryaffirmation/quo';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categoryaffirmation/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the categoryaffirmation. Example: quo

Delete Selected

requires authentication

Delete the affirmation

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/category/affirmation/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"et\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/category/affirmation/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "et"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/category/affirmation/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'et',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/category/affirmation/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

AffirmationCategory

List

requires authentication

Get the list of author

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/affirmationcategory?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/affirmationcategory"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/affirmationcategory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/affirmationcategory

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the author

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/affirmationcategory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/affirmationcategory"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "name": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/affirmationcategory';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/affirmationcategory

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the affirmation category for update.

name   string   

Name of the affirmation category.

Details

requires authentication

get the details of the author

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/affirmationcategory/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/affirmationcategory/ut"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/affirmationcategory/ut';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/affirmationcategory/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the affirmationcategory. Example: ut

Delete Selected

requires authentication

Delete the author

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/affirmationcategory/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"quos\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/affirmationcategory/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "quos"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/affirmationcategory/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'quos',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/affirmationcategory/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

Authentication

Login

login the user

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/login" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"shanelle.kihn@example.com\",
    \"password\": \"molestiae\",
    \"is_social\": \"TRUE\\/FALSE\",
    \"social_token\": \"ASCHU55SDSD907HJY6\",
    \"social_name\": \"Facebook\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/login"
);

const headers = {
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "email": "shanelle.kihn@example.com",
    "password": "molestiae",
    "is_social": "TRUE\/FALSE",
    "social_token": "ASCHU55SDSD907HJY6",
    "social_name": "Facebook"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'shanelle.kihn@example.com',
            'password' => 'molestiae',
            'is_social' => 'TRUE/FALSE',
            'social_token' => 'ASCHU55SDSD907HJY6',
            'social_name' => 'Facebook',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/login

Headers

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

email   string   

The email id of the account. value must be a valid email address. Example: shanelle.kihn@example.com

password   string   

The password of the account. . Example: molestiae

is_social   string  optional  

The token of social media account is exist or not. Example: TRUE/FALSE

social_token   string  optional  

The token of social media account. Example: ASCHU55SDSD907HJY6

social_name   string  optional  

The name of social media account. Example: Facebook

Register

Register the account of support worker

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/register" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"john@doe.com\",
    \"password\": \"Test@123\",
    \"is_social\": \"TRUE\\/FALSE\",
    \"social_token\": \"ASCHU55SDSD907HJY6\",
    \"social_name\": \"Facebook\",
    \"phone_number\": \"98765XXXXX\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/register"
);

const headers = {
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "email": "john@doe.com",
    "password": "Test@123",
    "is_social": "TRUE\/FALSE",
    "social_token": "ASCHU55SDSD907HJY6",
    "social_name": "Facebook",
    "phone_number": "98765XXXXX"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'john@doe.com',
            'password' => 'Test@123',
            'is_social' => 'TRUE/FALSE',
            'social_token' => 'ASCHU55SDSD907HJY6',
            'social_name' => 'Facebook',
            'phone_number' => '98765XXXXX',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/register

Headers

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

email   string   

The email of the account. Must be a valid email address. value must be a valid email address. Example: john@doe.com

password   string   

The password of the account. Example: Test@123

is_social   string   

The token of social media account is exist or not. Example: TRUE/FALSE

social_token   string  optional  

The token of social media account. Example: ASCHU55SDSD907HJY6

social_name   string  optional  

The name of social media account. Example: Facebook

phone_number   string  optional  

The phone number of user. Must match the regex /^([0-9\s-+()]*)$/. Example: 98765XXXXX

Forgot Password

forgot the password for the user account

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/forgot-password" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"willis.sporer@example.org\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/forgot-password"
);

const headers = {
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "email": "willis.sporer@example.org"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/forgot-password';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'willis.sporer@example.org',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/forgot-password

Headers

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

email   string   

The email id of the account Example: willis.sporer@example.org

Reset Password

reset password for user account using forgot password activation link

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/reset-password" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"token\": \"est\",
    \"email\": \"qbarrows@example.org\",
    \"password\": \"%y3w,=;u$osz%9X\",
    \"password_confirmation\": \"eius\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/reset-password"
);

const headers = {
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "token": "est",
    "email": "qbarrows@example.org",
    "password": "%y3w,=;u$osz%9X",
    "password_confirmation": "eius"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/reset-password';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'token' => 'est',
            'email' => 'qbarrows@example.org',
            'password' => '%y3w,=;u$osz%9X',
            'password_confirmation' => 'eius',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Success):


{"message": "Password reset successfully! You can login with your new password!",}
 

Example response (401, Token is invalid):


{
    "message": "This password reset token is invalid."
}
 

Example response (404, Email does not exist):


{
    "message": "Email does not exist"
}
 

Request      

POST api/v1/auth/reset-password

Headers

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

token   string   

Token for reset the password Example: est

email   string   

The email id of the account Example: qbarrows@example.org

password   string   

New password of the account Example: %y3w,=;u$osz%9X

password_confirmation   string   

Confirm password of the account Example: eius

Logout

requires authentication

logout from the account

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/logout';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Author

List

requires authentication

Get the list of author

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/author?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/author"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/author';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/author

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the author

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/author" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/author"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "name": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/author';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/author

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the author for update.

name   string   

Name of the author.

Details

requires authentication

get the details of the author

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/author/consequuntur" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/author/consequuntur"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/author/consequuntur';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/author/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the author. Example: consequuntur

Delete Selected

requires authentication

Delete the author

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/author/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"sed\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/author/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "sed"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/author/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'sed',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/author/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

AuthorQuote

List

requires authentication

Get the list of author quote

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/authorquote?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/authorquote"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/authorquote';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/authorquote

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the author quote

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/authorquote" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"quote_text\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/authorquote"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "quote_text": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/authorquote';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'quote_text' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/authorquote

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the quote for update.

quote_text   string   

Quote text of the author.

Details

requires authentication

get the details of the author quote

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/authorquote/aut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/authorquote/aut"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/authorquote/aut';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/authorquote/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the authorquote. Example: aut

Category

List

requires authentication

Get the list of category

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/category?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/category"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/category';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/category

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update a Category details

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/category" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: multipart/form-data" \
    --form "title="\
    --form "description="\
    --form "can_hide="\
    --form "single_answer="\
    --form "view_example="\
    --form "view_type=0"\
    --form "sort_id="\
    --form "image=@/tmp/phpoyah7p" 
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/category"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "multipart/form-data",
};

const body = new FormData();
body.append('title', '');
body.append('description', '');
body.append('can_hide', '');
body.append('single_answer', '');
body.append('view_example', '');
body.append('view_type', '0');
body.append('sort_id', '');
body.append('image', document.querySelector('input[name="image"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/category';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'multipart/form-data',
        ],
        'multipart' => [
            [
                'name' => 'title',
                'contents' => ''
            ],
            [
                'name' => 'description',
                'contents' => ''
            ],
            [
                'name' => 'can_hide',
                'contents' => ''
            ],
            [
                'name' => 'single_answer',
                'contents' => ''
            ],
            [
                'name' => 'view_example',
                'contents' => ''
            ],
            [
                'name' => 'view_type',
                'contents' => '0'
            ],
            [
                'name' => 'sort_id',
                'contents' => ''
            ],
            [
                'name' => 'image',
                'contents' => fopen('/tmp/phpoyah7p', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/category

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: multipart/form-data

Body Parameters

id   string  optional  

Id of the category for update.

title   string   

Title of the category.

description   string   

Description of the category.

can_hide   string  optional  

Enter 0 or 1.

single_answer   string  optional  

Enter 0 or 1.

view_example   string  optional  

Enter view example.

image   file   

Enter image url. Must be an image. Example: /tmp/phpoyah7p

view_type   number  optional  

Enter view type. Example: 0

sort_id   string  optional  

Enter sort id.

Details

requires authentication

get the details of the house

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/category/libero" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/category/libero"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/category/libero';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/category/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the category. Example: libero

Delete Selected

requires authentication

Delete the categories

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/category/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"maxime\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/category/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "maxime"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/category/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'maxime',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/category/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

API For Category List for APP Users

requires authentication

Get the list of category

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/apiList?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/apiList"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/apiList';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/apiList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

CategoryField

Update display order

requires authentication

update a CategoryField display order

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/categoryfield/nihil/displayOrder" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryfield/nihil/displayOrder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "title": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryfield/nihil/displayOrder';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/categoryfield/{id}/displayOrder

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the categoryfield. Example: nihil

Body Parameters

id   string  optional  

Id of the category for update.

title   string  optional  

Title of the category field.

List

requires authentication

Get the list of CategoryField

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categoryfield?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryfield"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryfield';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categoryfield

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update a CategoryField details

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/categoryfield" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryfield"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "title": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryfield';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/categoryfield

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the category for update.

title   string  optional  

Title of the category field.

Details

requires authentication

get the details of the house

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categoryfield/laborum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryfield/laborum"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryfield/laborum';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categoryfield/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the categoryfield. Example: laborum

Delete Selected

requires authentication

Delete the CategoryField

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/categoryfield/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"id\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categoryfield/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "id"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categoryfield/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'id',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/categoryfield/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

Adddata

requires authentication

Add CategoryField details

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/addData" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"saved_data_id\": \"rerum\",
    \"category_id\": \"\",
    \"sub_category_id\": \"\",
    \"user_id\": \"\",
    \"data\": \"\",
    \"individual_content\": \"\",
    \"individual_reminder\": \"\",
    \"general_reminder\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/addData"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "saved_data_id": "rerum",
    "category_id": "",
    "sub_category_id": "",
    "user_id": "",
    "data": "",
    "individual_content": "",
    "individual_reminder": "",
    "general_reminder": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/addData';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'saved_data_id' => 'rerum',
            'category_id' => '',
            'sub_category_id' => '',
            'user_id' => '',
            'data' => '',
            'individual_content' => '',
            'individual_reminder' => '',
            'general_reminder' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/addData

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

saved_data_id   string   

Id. Example: rerum

category_id   string   

Id of the category field.

sub_category_id   string  optional  

Id of the sub-category field.

user_id   string   

User Id of the category field.

data   string   

Data.

individual_content   string  optional  

Test Message.

individual_reminder   string  optional  

07:00 AM,11:00 AM,03:00 PM,07:00 PM.

general_reminder   string  optional  

12:00 AM,11:00 AM,03:00 PM,07:00 PM.

CategoryWhyHow

List

requires authentication

Get the list of category whyHow

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categorywhyhow?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categorywhyhow"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categorywhyhow';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categorywhyhow

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the category whyhow

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/categorywhyhow" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"category_id\": \"\",
    \"whyhow_text\": \"\",
    \"option_id\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categorywhyhow"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "category_id": "",
    "whyhow_text": "",
    "option_id": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categorywhyhow';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'category_id' => '',
            'whyhow_text' => '',
            'option_id' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/categorywhyhow

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the category for update.

category_id   string   

Enter id of the category.

whyhow_text   string   

Enter the why how text of the category.

option_id   string  optional  

Enter id of the option.

Details

requires authentication

get the details of the category whyhow

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/categorywhyhow/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categorywhyhow/et"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categorywhyhow/et';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/categorywhyhow/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the categorywhyhow. Example: et

Delete Selected

requires authentication

Delete the category whyhow

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/categorywhyhow/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"quo\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/categorywhyhow/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "quo"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/categorywhyhow/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'quo',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/categorywhyhow/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

whyHowList

requires authentication

Get the list of category whyhow

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/whyHowList?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/whyHowList"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/whyHowList';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/whyHowList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Common

Options

Select2 Options

requires authentication

Get options for select2 by type

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/common/select-two-options/State/quibusdam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/common/select-two-options/State/quibusdam"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/common/select-two-options/State/quibusdam';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/common/select-two-options/{type}/{id?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

type   string   

Type for the which select2 options Example: State

id   string  optional  

The ID of the . Example: quibusdam

Home

HomeCategory

requires authentication

Get the list homeCategory

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/home?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/home"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/home';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/home

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Intro

List

requires authentication

Get the list of Intro

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/introduction?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/introduction"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/introduction';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/introduction

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the Intro

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/introduction" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"text\": \"Text Text\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/introduction"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "text": "Text Text"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/introduction';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'text' => 'Text Text',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/introduction

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the introduction for update.

text   string   

text of the introduction. Example: Text Text

Details

requires authentication

get the details of the Intro

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/introduction/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/introduction/et"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/introduction/et';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/introduction/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the introduction. Example: et

Notification

GET api/v1/notification

requires authentication

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/notification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/notification"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/notification';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/notification

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Store

requires authentication

Add the Notification

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/notification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"\",
    \"message\": \"\",
    \"date\": \"2023\\/11\\/01 12:05\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/notification"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "title": "",
    "message": "",
    "date": "2023\/11\/01 12:05"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/notification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => '',
            'message' => '',
            'date' => '2023/11/01 12:05',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/notification

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the notification for update.

title   string   

Title of the notification.

message   string   

Message of the notification.

date   string   

Date & Time of the notification. Example: 2023/11/01 12:05

Option

List

requires authentication

Get the list of category whyHow option

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/option?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/option"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/option';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/option

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the category whyhow option

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/option" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"\",
    \"text\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/option"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "name": "",
    "text": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/option';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => '',
            'text' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/option

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the category for update.

name   string   

Name of the option.

text   string   

text of the option.

Details

requires authentication

get the details of the category whyhow option

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/option/tempora" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/option/tempora"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/option/tempora';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/option/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the option. Example: tempora

Question

List

requires authentication

Get the list of question

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/question?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/question"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/question';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/question

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Role

List

requires authentication

Get the list of role

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/role?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/role"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/role';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/role

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update a Role details

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/role" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/role"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "name": ""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/role';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/role

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the role for update.

name   string   

Name of the role.

details

requires authentication

get the details of the house

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/role/voluptatem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/role/voluptatem"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/role/voluptatem';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/role/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the role. Example: voluptatem

Sub-Category

List

requires authentication

Get the list of sub-category

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/subCategory?search=%22%22&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/subCategory"
);

const params = {
    "search": """",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/subCategory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
        'query' => [
            'search' => '""',
            'per_page' => '10',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/subCategory

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Query Parameters

search   string  optional  

Example: ""

per_page   string  optional  

Per page records which you want Example: 10

page   string  optional  

Page no for the list Example: 1

Store

requires authentication

Add and update the sub-category

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/subCategory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"category_id\": \"quis\",
    \"name\": \"Abc\",
    \"data\": \"Abc\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/subCategory"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "category_id": "quis",
    "name": "Abc",
    "data": "Abc"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/subCategory';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'category_id' => 'quis',
            'name' => 'Abc',
            'data' => 'Abc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/subCategory

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the category for update.

category_id   string   

Example: quis

name   string   

Name of the sub-category. Example: Abc

data   string  optional  

Data of the sub-category. Example: Abc

Details

requires authentication

get the details of the sub-category

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/subCategory/id" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/subCategory/id"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/subCategory/id';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/subCategory/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

URL Parameters

id   string   

The ID of the subCategory. Example: id

Delete Selected

requires authentication

Delete the sub-categories

Example request:
curl --request DELETE \
    "https://bighappy.pehoy.com/api/v1/subCategory/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": [
        \"reiciendis\"
    ]
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/subCategory/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "ids": [
        "reiciendis"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/subCategory/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'ids' => [
                'reiciendis',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/v1/subCategory/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

ids   string[]  optional  

example:1,2,3

Users

Get Profile Detail

requires authentication

Get details of the Authenticated User

Example request:
curl --request GET \
    --get "https://bighappy.pehoy.com/api/v1/auth/profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/profile"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/profile';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

GET api/v1/auth/profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Change Password

requires authentication

Change password for Authenticated user

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/change-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"old_password\": \"Bighappy@123$\",
    \"password\": \"Test@123\",
    \"password_confirmation\": \"Test@123\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/change-password"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "old_password": "Bighappy@123$",
    "password": "Test@123",
    "password_confirmation": "Test@123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/change-password';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'old_password' => 'Bighappy@123$',
            'password' => 'Test@123',
            'password_confirmation' => 'Test@123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Password Changed successfully."
}
 

Example response (401, Old password does not match):


{message:"Old password does not match!"}
 

Request      

POST api/v1/auth/change-password

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

old_password   string   

The old password of the account. . Example: Bighappy@123$

password   string   

The password of the account. . Example: Test@123

password_confirmation   string   

The confirm password to match with password. . Example: Test@123

Manage Personal Profile

requires authentication

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/change-profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: multipart/form-data" \
    --form "first_name=John"\
    --form "last_name=doe"\
    --form "profile_picture=@/tmp/phpgLYE9p" 
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/change-profile"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "multipart/form-data",
};

const body = new FormData();
body.append('first_name', 'John');
body.append('last_name', 'doe');
body.append('profile_picture', document.querySelector('input[name="profile_picture"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/change-profile';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'multipart/form-data',
        ],
        'multipart' => [
            [
                'name' => 'first_name',
                'contents' => 'John'
            ],
            [
                'name' => 'last_name',
                'contents' => 'doe'
            ],
            [
                'name' => 'profile_picture',
                'contents' => fopen('/tmp/phpgLYE9p', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/change-profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: multipart/form-data

Body Parameters

first_name   string   

First Name of the team member. Example: John

last_name   string   

Last Name of the team member. Example: doe

profile_picture   file   

The profile picture of the team member. Must be an image. Example: /tmp/phpgLYE9p

Edit Profile

requires authentication

Edit Profile of the Authenticated User

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/edit-profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"doe\",
    \"old_password\": \"Bighappy@123$\",
    \"password\": \"Test@123\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/edit-profile"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "doe",
    "old_password": "Bighappy@123$",
    "password": "Test@123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/edit-profile';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'doe',
            'old_password' => 'Bighappy@123$',
            'password' => 'Test@123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/edit-profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

first_name   string  optional  

First Name of the team member. Example: John

last_name   string  optional  

Last Name of the team member. Example: doe

old_password   string  optional  

The old password of the account. . Example: Bighappy@123$

password   string  optional  

The password of the account. . Example: Test@123

Edit Receive Sms Status

requires authentication

Edit Sms Status Of The Authenticated User

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/update-sms-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"receive_sms\": \"John\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/update-sms-status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "receive_sms": "John"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/update-sms-status';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'receive_sms' => 'John',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/update-sms-status

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

receive_sms   string  optional  

receive sms of the user. Example: John

Edit reminder type

requires authentication

Edit reminder type Of The Authenticated User

Example request:
curl --request POST \
    "https://bighappy.pehoy.com/api/v1/auth/reminder-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "device-id: 1234" \
    --header "device-type: android/iphone" \
    --header "device-token: 123" \
    --header "ram: 2" \
    --header "rom: 32" \
    --header "brand: samsung" \
    --header "model: s21" \
    --header "app-version: 1" \
    --header "is-mobile: true" \
    --header "Content-Type: application/json" \
    --data "{
    \"general_reminder\": \"On\",
    \"Individual_reminder\": \"On\"
}"
const url = new URL(
    "https://bighappy.pehoy.com/api/v1/auth/reminder-type"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "device-id": "1234",
    "device-type": "android/iphone",
    "device-token": "123",
    "ram": "2",
    "rom": "32",
    "brand": "samsung",
    "model": "s21",
    "app-version": "1",
    "is-mobile": "true",
    "Content-Type": "application/json",
};

let body = {
    "general_reminder": "On",
    "Individual_reminder": "On"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://bighappy.pehoy.com/api/v1/auth/reminder-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'device-id' => '1234',
            'device-type' => 'android/iphone',
            'device-token' => '123',
            'ram' => '2',
            'rom' => '32',
            'brand' => 'samsung',
            'model' => 's21',
            'app-version' => '1',
            'is-mobile' => 'true',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'general_reminder' => 'On',
            'Individual_reminder' => 'On',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/reminder-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

device-id      

Example: 1234

device-type      

Example: android/iphone

device-token      

Example: 123

ram      

Example: 2

rom      

Example: 32

brand      

Example: samsung

model      

Example: s21

app-version      

Example: 1

is-mobile      

Example: true

Content-Type      

Example: application/json

Body Parameters

general_reminder   string  optional  

general reminder On-Off. Example: On

Individual_reminder   string  optional  

individual reminder On-Off. Example: On