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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Author
List
requires authentication
Get the list of author
Store
requires authentication
Add and update the author
Details
requires authentication
get the details of the author
Delete Selected
requires authentication
Delete the author
AuthorQuote
List
requires authentication
Get the list of author quote
Store
requires authentication
Add and update the author quote
Details
requires authentication
get the details of the author quote
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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!"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.