MENU navbar-image

Introduction

Version: v5.1.4 Updated: Jul 26, 2023

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

Base URL

https://demo.metafox.app/api/v1

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {accessToken}".

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

You can retrieve your token with api Generate API token.

Activity Point

App name: Activity Point Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Browse item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/package" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sort": "recent",
    "sort_type": "desc"
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/package',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sort' => 'recent',
            'sort_type' => 'desc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/package"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sort": "recent",
    "sort_type": "desc"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET activitypoint/package

Query Parameters

q  string optional  

search text

Body Parameters

q  string optional  

sort  string optional  

Must be one of recent, most_discussed, most_viewed, most_liked, or latest.

sort_type  string optional  

Must be one of desc or asc.

page  integer optional  

Must be at least 1.

limit  integer optional  

Browse item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/package-transaction" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "from": "2023-07-26T10:00:24",
    "to": "2023-07-26T10:00:24",
    "sort": "recent",
    "sort_type": "desc"
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/package-transaction',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'from' => '2023-07-26T10:00:24',
            'to' => '2023-07-26T10:00:24',
            'sort' => 'recent',
            'sort_type' => 'desc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/package-transaction"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "2023-07-26T10:00:24",
    "to": "2023-07-26T10:00:24",
    "sort": "recent",
    "sort_type": "desc"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET activitypoint/package-transaction

Body Parameters

q  string optional  

status  string optional  

from  string optional  

Must be a valid date.

to  string optional  

Must be a valid date.

sort  string optional  

Must be one of recent, most_discussed, most_viewed, most_liked, or latest.

sort_type  string optional  

Must be one of desc or asc.

page  integer optional  

Must be at least 1.

limit  integer optional  

POST activitypoint/package/purchase/{id}

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/activitypoint/package/purchase/19737086" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "payment_gateway": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/activitypoint/package/purchase/19737086',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'payment_gateway' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/package/purchase/19737086"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "payment_gateway": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST activitypoint/package/purchase/{id}

URL Parameters

id  string  

The ID of the purchase.

Body Parameters

payment_gateway  integer  

View item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/package/5" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/package/5',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/package/5"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET activitypoint/package/{id}

URL Parameters

id  string  

The ID of the package.

Browse item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/setting" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sort": "recent",
    "sort_type": "asc"
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/setting',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sort' => 'recent',
            'sort_type' => 'asc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/setting"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sort": "recent",
    "sort_type": "asc"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET activitypoint/setting

Body Parameters

sort  string optional  

Must be one of recent, most_discussed, most_viewed, most_liked, or latest.

sort_type  string optional  

Must be one of desc or asc.

View item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/statistic/342261" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/statistic/342261',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/statistic/342261"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET activitypoint/statistic/{id}

URL Parameters

id  string  

The ID of the statistic.

Browse item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/transaction" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "from": "2023-07-26T10:00:24",
    "to": "2023-07-26T10:00:24",
    "sort": "most_discussed",
    "sort_type": "desc"
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/transaction',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'from' => '2023-07-26T10:00:24',
            'to' => '2023-07-26T10:00:24',
            'sort' => 'most_discussed',
            'sort_type' => 'desc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/transaction"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "2023-07-26T10:00:24",
    "to": "2023-07-26T10:00:24",
    "sort": "most_discussed",
    "sort_type": "desc"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET activitypoint/transaction

Body Parameters

type  integer optional  

from  string optional  

Must be a valid date.

to  string optional  

Must be a valid date.

sort  string optional  

Must be one of recent, most_discussed, most_viewed, most_liked, or latest.

sort_type  string optional  

Must be one of desc or asc.

page  integer optional  

Must be at least 1.

limit  integer optional  

View item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/activitypoint/transaction/9997281" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/activitypoint/transaction/9997281',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/activitypoint/transaction/9997281"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET activitypoint/transaction/{id}

URL Parameters

id  string  

The ID of the transaction.

Advertise

App name: Advertise Version: 5.0.3 Author: phpFox Updated at: Jul 26, 2023

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/advertise"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/advertise');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/advertise

Body Parameters

placement_id  number optional  

view  string optional  

start_date  string optional  

end_date  string optional  

status  string optional  

page  number optional  

Must be at least 1.

limit  number optional  

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/advertise/advertise" \
    --header "Content-Type: application/json" \
    --data "{
    "placement_id": null,
    "image": null,
    "url": "http:\/\/rice.com\/optio-quis-sunt-non-enim-quidem-consequatur-ipsam-quis",
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "creation_type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/advertise/advertise',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'placement_id' => null,
            'image' => null,
            'url' => 'http://rice.com/optio-quis-sunt-non-enim-quidem-consequatur-ipsam-quis',
            'title' => null,
            'languages' => [
                null,
            ],
            'start_date' => '2023-07-26T10:00:24',
            'creation_type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "placement_id": null,
    "image": null,
    "url": "http:\/\/rice.com\/optio-quis-sunt-non-enim-quidem-consequatur-ipsam-quis",
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "creation_type": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST advertise/advertise

Body Parameters

placement_id  number  

image  object  

image.status  string optional  

This field is required when image.temp_file is present.

image.temp_file  number optional  

This field is required when image.id is 0.

url  string  

Must be a valid URL.

image_tooltip  string optional  

Must not be greater than 255 characters.

html_title  string optional  

This field is required when creation_type is html. Must not be greater than 25 characters.

html_description  string optional  

Must not be greater than 135 characters.

title  string  

Must not be greater than 255 characters.

total_click  string optional  

total_impression  string optional  

genders  string[] optional  

This field is required when genders is present.

age_from  integer optional  

Must be at least 1.

age_to  string optional  

languages  string[] optional  

This field is required when languages is present.

is_active  string optional  

start_date  string  

Must be a valid date.

end_date  string optional  

creation_type  string  

location  object optional  

Must have at least {min, plural, =1 {# item} other {# items}}.

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/advertise/advertise/active/7"
$client = new \GuzzleHttp\Client();
$response = $client->patch('https://demo.metafox.app/api/v1/advertise/advertise/active/7');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/active/7"
);

fetch(url, {
    method: "PATCH",
}).then(response => response.json());

Request      

PATCH advertise/advertise/active/{id}

URL Parameters

id  string  

The ID of the active.

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/advertise/advertise/hide/79701"
$client = new \GuzzleHttp\Client();
$response = $client->patch('https://demo.metafox.app/api/v1/advertise/advertise/hide/79701');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/hide/79701"
);

fetch(url, {
    method: "PATCH",
}).then(response => response.json());

Request      

PATCH advertise/advertise/hide/{id}

URL Parameters

id  string  

The ID of the hide.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/advertise/report/41" \
    --header "Content-Type: application/json" \
    --data "{
    "report_type": null,
    "view": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/advertise/advertise/report/41',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'report_type' => null,
            'view' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/report/41"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "report_type": null,
    "view": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET advertise/advertise/report/{id}

URL Parameters

id  string  

The ID of the report.

Body Parameters

report_type  string  

view  string  

start_date_month  string optional  

end_date_month  string optional  

start_date_week  string optional  

end_date_week  string optional  

start_date_day  string optional  

end_date_day  string optional  

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/advertise/show" \
    --header "Content-Type: application/json" \
    --data "{
    "placement_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/advertise/advertise/show',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'placement_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/show"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "placement_id": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET advertise/advertise/show

Body Parameters

placement_id  number  

location  string optional  

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/advertise/advertise/total/6" \
    --header "Content-Type: application/json" \
    --data "{
    "type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/advertise/advertise/total/6',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/total/6"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH advertise/advertise/total/{id}

URL Parameters

id  string  

The ID of the total.

Body Parameters

type  string  

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/advertise/6900"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/advertise/6900');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/6900"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/advertise/{id}

URL Parameters

id  string  

The ID of the advertise.

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/advertise/advertise/0" \
    --header "Content-Type: application/json" \
    --data "{
    "title": null,
    "languages": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/advertise/advertise/0',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => null,
            'languages' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/0"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": null,
    "languages": [
        null
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT advertise/advertise/{id}

PATCH advertise/advertise/{id}

URL Parameters

id  string  

The ID of the advertise.

Body Parameters

title  string  

Must not be greater than 255 characters.

genders  string[] optional  

This field is required when genders is present.

age_from  number optional  

Must be at least 1.

age_to  number optional  

languages  string[] optional  

This field is required when languages is present.

location  object optional  

Must have at least {min, plural, =1 {# item} other {# items}}.

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/advertise/advertise/69"
$client = new \GuzzleHttp\Client();
$response = $client->delete('https://demo.metafox.app/api/v1/advertise/advertise/69');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/advertise/69"
);

fetch(url, {
    method: "DELETE",
}).then(response => response.json());

Request      

DELETE advertise/advertise/{id}

URL Parameters

id  string  

The ID of the advertise.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/invoice"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/invoice');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/invoice"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/invoice

Body Parameters

start_date  string optional  

end_date  string optional  

status  string optional  

page  number optional  

Must be at least 1.

limit  number optional  

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/advertise/invoice/cancel/41"
$client = new \GuzzleHttp\Client();
$response = $client->patch('https://demo.metafox.app/api/v1/advertise/invoice/cancel/41');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/invoice/cancel/41"
);

fetch(url, {
    method: "PATCH",
}).then(response => response.json());

Request      

PATCH advertise/invoice/cancel/{id}

URL Parameters

id  string  

The ID of the cancel.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/advertise/invoice/change" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/advertise/invoice/change',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/invoice/change"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST advertise/invoice/change

Body Parameters

invoice_id  number optional  

item_id  number  

Must be at least 1.

item_type  string  

payment_gateway  number optional  

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/advertise/invoice/payment" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/advertise/invoice/payment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/invoice/payment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST advertise/invoice/payment

Body Parameters

invoice_id  number optional  

item_id  number  

Must be at least 1.

item_type  string  

payment_gateway  number optional  

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/sponsor"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/sponsor');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/sponsor

Body Parameters

start_date  string optional  

end_date  string optional  

status  string optional  

page  number optional  

Must be at least 1.

limit  number optional  

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/advertise/sponsor" \
    --header "Content-Type: application/json" \
    --data "{
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "item_type": null,
    "item_id": null,
    "total_impression": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/advertise/sponsor',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => null,
            'languages' => [
                null,
            ],
            'start_date' => '2023-07-26T10:00:24',
            'item_type' => null,
            'item_id' => null,
            'total_impression' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "item_type": null,
    "item_id": null,
    "total_impression": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST advertise/sponsor

Body Parameters

title  string  

Must not be greater than 255 characters.

genders  string[] optional  

This field is required when genders is present.

age_from  integer optional  

Must be at least 1.

age_to  string optional  

languages  string[] optional  

This field is required when languages is present.

location  object optional  

Must have at least {min, plural, =1 {# item} other {# items}}.

start_date  string  

Must be a valid date.

end_date  string optional  

item_type  string  

item_id  integer  

total_impression  integer  

Must be at least 100.

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/advertise/sponsor/active/846245865"
$client = new \GuzzleHttp\Client();
$response = $client->patch('https://demo.metafox.app/api/v1/advertise/sponsor/active/846245865');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/active/846245865"
);

fetch(url, {
    method: "PATCH",
}).then(response => response.json());

Request      

PATCH advertise/sponsor/active/{id}

URL Parameters

id  string  

The ID of the active.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/advertise/sponsor/feed" \
    --header "Content-Type: application/json" \
    --data "{
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "item_type": null,
    "item_id": null,
    "total_impression": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/advertise/sponsor/feed',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => null,
            'languages' => [
                null,
            ],
            'start_date' => '2023-07-26T10:00:24',
            'item_type' => null,
            'item_id' => null,
            'total_impression' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/feed"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": null,
    "languages": [
        null
    ],
    "start_date": "2023-07-26T10:00:24",
    "item_type": null,
    "item_id": null,
    "total_impression": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST advertise/sponsor/feed

Body Parameters

title  string  

Must not be greater than 255 characters.

genders  string[] optional  

This field is required when genders is present.

age_from  integer optional  

Must be at least 1.

age_to  string optional  

languages  string[] optional  

This field is required when languages is present.

location  object optional  

Must have at least {min, plural, =1 {# item} other {# items}}.

start_date  string  

Must be a valid date.

end_date  string optional  

item_type  string  

item_id  integer  

total_impression  integer  

Must be at least 100.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/sponsor/form/feed//"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/sponsor/form/feed//');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/form/feed//"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/sponsor/form/feed/{itemType}/{itemId}

URL Parameters

itemType  string  

itemId  string  

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/sponsor/form//"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/sponsor/form//');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/form//"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/sponsor/form/{itemType}/{itemId}

URL Parameters

itemType  string  

itemId  string  

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/advertise/sponsor/730"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/advertise/sponsor/730');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/730"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET advertise/sponsor/{id}

URL Parameters

id  string  

The ID of the sponsor.

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/advertise/sponsor/615" \
    --header "Content-Type: application/json" \
    --data "{
    "title": null,
    "languages": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/advertise/sponsor/615',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => null,
            'languages' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/615"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": null,
    "languages": [
        null
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT advertise/sponsor/{id}

PATCH advertise/sponsor/{id}

URL Parameters

id  string  

The ID of the sponsor.

Body Parameters

title  string  

Must not be greater than 255 characters.

genders  string[] optional  

This field is required when genders is present.

age_from  integer optional  

Must be at least 1.

age_to  string optional  

languages  string[] optional  

This field is required when languages is present.

location  object optional  

Must have at least {min, plural, =1 {# item} other {# items}}.

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/advertise/sponsor/5"
$client = new \GuzzleHttp\Client();
$response = $client->delete('https://demo.metafox.app/api/v1/advertise/sponsor/5');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/advertise/sponsor/5"
);

fetch(url, {
    method: "DELETE",
}).then(response => response.json());

Request      

DELETE advertise/sponsor/{id}

URL Parameters

id  string  

The ID of the sponsor.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/sponsor/total/click" \
    --header "Content-Type: application/json" \
    --data "{
    "item_type": null,
    "item_ids": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/sponsor/total/click',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_type' => null,
            'item_ids' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/sponsor/total/click"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_type": null,
    "item_ids": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST sponsor/total/click

Body Parameters

item_type  string  

item_ids  object  

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/sponsor/total/view" \
    --header "Content-Type: application/json" \
    --data "{
    "item_type": null,
    "item_ids": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/sponsor/total/view',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_type' => null,
            'item_ids' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/sponsor/total/view"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_type": null,
    "item_ids": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST sponsor/total/view

Body Parameters

item_type  string  

item_ids  object  

Announcement

App name: Announcement Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Browse announcement.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/announcement?limit=10" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/announcement',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
        'query' => [
            'limit'=> '10',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/announcement"
);

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

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET announcement

Query Parameters

limit  integer optional  

The items to return.

Browse announcement.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/announcement/view?announcement_id=&limit=10" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/announcement/view',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
        'query' => [
            'announcement_id'=> '',
            'limit'=> '10',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/announcement/view"
);

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

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET announcement/view

Query Parameters

announcement_id  number  

limit  integer optional  

The items to return.

Hide announcement.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/announcement/view" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "announcement_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/announcement/view',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'announcement_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/announcement/view"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "announcement_id": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST announcement/view

Body Parameters

announcement_id  number  

Must be at least 1.

View announcement.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/announcement/0000" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/announcement/0000',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/announcement/0000"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET announcement/{id}

URL Parameters

id  string  

The ID of the announcement.

Attachments

App name: Attachments Version: 5.0.0 Author: phpFox Updated at: Jul 26, 2023

Upload attachment.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/attachment" \
    --header "Content-Type: application/json" \
    --data "{
    "file": null,
    "item_type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/attachment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'file' => null,
            'item_type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/attachment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "file": null,
    "item_type": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST attachment

Body Parameters

storage_id  string optional  

file  file  

Must be a file. Must not be greater than 8192 kilobytes.

item_type  string  

upload_type  string optional  

Allow downloading resource.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/attachment/download/32"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/attachment/download/32');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/attachment/download/32"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET attachment/download/{id}

URL Parameters

id  string  

The ID of the download.

Authorization

App name: Authorization Version: 5.0.6 Author: phpFox Updated at: Jul 26, 2023

Store item.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/authorization/device" \
    --header "Content-Type: application/json" \
    --data "{
    "device_token": null,
    "device_id": null,
    "token_source": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/authorization/device',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'device_token' => null,
            'device_id' => null,
            'token_source' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/authorization/device"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "device_token": null,
    "device_id": null,
    "token_source": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST authorization/device

Body Parameters

device_token  string  

device_id  string  

device_uid  string optional  

token_source  string  

platform  string optional  

platform_version  string optional  

extra  object optional  

Blog

App name: Blog Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Browse blog.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog?view=sponsor&sort=most_liked&sort_type=desc&when=all&user_id=0" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
        'query' => [
            'view'=> 'sponsor',
            'sort'=> 'most_liked',
            'sort_type'=> 'desc',
            'when'=> 'all',
            'user_id'=> '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog"
);

const params = {
    "view": "sponsor",
    "sort": "most_liked",
    "sort_type": "desc",
    "when": "all",
    "user_id": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog

Query Parameters

q  string optional  

view  string optional  

Must be one of all, my, pending, feature, sponsor, search, my_pending, draft, or friend.

sort  string optional  

Must be one of recent, most_discussed, most_viewed, most_liked, or latest.

sort_type  string optional  

Must be one of desc or asc.

when  string optional  

Must be one of all, this_month, this_week, or today.

category_id  integer optional  

user_id  integer optional  

The profile id to filter.

owner_id  integer optional  

page  integer optional  

Must be at least 1.

limit  integer optional  

is_featured  string optional  

Create blog.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/blog" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "title": null,
    "categories": [
        null
    ],
    "text": null,
    "tags": [
        null
    ],
    "privacy": null,
    "attachments": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/blog',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => null,
            'categories' => [
                null,
            ],
            'text' => null,
            'tags' => [
                null,
            ],
            'privacy' => null,
            'attachments' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": null,
    "categories": [
        null
    ],
    "text": null,
    "tags": [
        null
    ],
    "privacy": null,
    "attachments": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST blog

Body Parameters

title  string  

categories  number[] optional  

owner_id  number optional  

file  object optional  

file.temp_file  number optional  

This field is required when file is present.

text  string  

draft  number optional  

tags  string[] optional  

privacy  string  

captcha  string optional  

attachments  number[] optional  

attachments[].id  number optional  

attachments[].status  string optional  

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog-category" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog-category',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog-category"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog-category

Body Parameters

id  number optional  

page  number optional  

Must be at least 1.

q  string optional  

level  number optional  

limit  number optional  

Approve blog.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/blog/approve/48694" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/blog/approve/48694',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/approve/48694"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH blog/approve/{id}

URL Parameters

id  string  

The ID of the approve.

Feature blog.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/blog/feature/5" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "feature": "0"
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/blog/feature/5',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'feature' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/feature/5"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "feature": "0"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH blog/feature/{id}

URL Parameters

id  string  

The ID of the feature.

Body Parameters

feature  number  

Must be one of 0 or 1.

GET blog/form

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog/form" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog/form',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/form"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog/form

Body Parameters

owner_id  number optional  

GET blog/form/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog/form/7" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog/form/7',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/form/7"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog/form/{id}

URL Parameters

id  string  

The ID of the form.

Body Parameters

owner_id  number optional  

Publish blog.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/blog/publish/02" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/blog/publish/02',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/publish/02"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH blog/publish/{id}

URL Parameters

id  string  

The ID of the publish.

Get search form.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog/search-form" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog/search-form',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/search-form"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog/search-form

Sponsor blog in feed.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/blog/sponsor-in-feed/9" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sponsor": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/blog/sponsor-in-feed/9',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sponsor' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/sponsor-in-feed/9"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sponsor": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH blog/sponsor-in-feed/{id}

URL Parameters

id  string  

The ID of the sponsor in feed.

Body Parameters

sponsor  number  

Sponsor blog.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/blog/sponsor/0" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sponsor": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/blog/sponsor/0',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sponsor' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/sponsor/0"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sponsor": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH blog/sponsor/{id}

URL Parameters

id  string  

The ID of the sponsor.

Body Parameters

sponsor  string  

View Blog.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/blog/1" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/blog/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/1"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET blog/{id}

URL Parameters

id  string  

The ID of the blog.

Update blog.

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/blog/0" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "categories": [
        null
    ],
    "tags": [
        null
    ],
    "published": false,
    "attachments": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/blog/0',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'categories' => [
                null,
            ],
            'tags' => [
                null,
            ],
            'published' => false,
            'attachments' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/0"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "categories": [
        null
    ],
    "tags": [
        null
    ],
    "published": false,
    "attachments": [
        null
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT blog/{id}

PATCH blog/{id}

URL Parameters

id  string  

The ID of the blog.

Body Parameters

title  string optional  

categories  integer[] optional  

Must be at least 1.

file  object optional  

file.temp_file  number optional  

This field is required when file.status is update.

file.status  string optional  

This field is required when file is present.

text  string optional  

tags  string[] optional  

draft  number optional  

published  boolean optional  

privacy  string optional  

attachments  number[] optional  

attachments[].id  number optional  

attachments[].status  string optional  

Delete blog.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/blog/370" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/blog/370',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/blog/370"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE blog/{id}

URL Parameters

id  string  

The ID of the blog.

Captcha

App name: Captcha Version: 5.0.6 Author: phpFox Updated at: Jul 26, 2023

POST captcha/verify

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/captcha/verify"
$client = new \GuzzleHttp\Client();
$response = $client->post('https://demo.metafox.app/api/v1/captcha/verify');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/captcha/verify"
);

fetch(url, {
    method: "POST",
}).then(response => response.json());

Request      

POST captcha/verify

Body Parameters

action_name  string optional  

captcha  string optional  

POST image-captcha/refresh

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/image-captcha/refresh"
$client = new \GuzzleHttp\Client();
$response = $client->post('https://demo.metafox.app/api/v1/image-captcha/refresh');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/image-captcha/refresh"
);

fetch(url, {
    method: "POST",
}).then(response => response.json());

Request      

POST image-captcha/refresh

Chat

App name: Chat Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

GET chat

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat

Body Parameters

q  string optional  

room_id  number optional  

last_message_id  number optional  

page  integer optional  

Must be at least 1.

limit  integer optional  

POST chat

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/chat" \
    --header "Content-Type: application/json" \
    --data "{
    "attachments": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/chat',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'attachments' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "attachments": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST chat

Body Parameters

room_id  number optional  

message  string optional  

type  string optional  

reply_id  integer optional  

attachments  number[] optional  

attachments[].id  number optional  

attachments[].status  string optional  

GET chat-room

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat-room"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat-room');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat-room

Body Parameters

q  string optional  

page  integer optional  

Must be at least 1.

limit  integer optional  

POST chat-room

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/chat-room" \
    --header "Content-Type: application/json" \
    --data "{
    "member_ids": [
        null
    ],
    "users": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/chat-room',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'member_ids' => [
                null,
            ],
            'users' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "member_ids": [
        null
    ],
    "users": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST chat-room

Body Parameters

member_ids  number[] optional  

users  number[] optional  

users[].id  number optional  

GET chat-room/addForm

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat-room/addForm"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat-room/addForm');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room/addForm"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat-room/addForm

PUT chat-room/mark-all-read

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/chat-room/mark-all-read" \
    --header "Content-Type: application/json" \
    --data "{
    "room_ids": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/chat-room/mark-all-read',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'room_ids' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room/mark-all-read"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room_ids": [
        null
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT chat-room/mark-all-read

Body Parameters

room_ids  number[] optional  

PUT chat-room/mark-read/{id}

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/chat-room/mark-read/22"
$client = new \GuzzleHttp\Client();
$response = $client->put('https://demo.metafox.app/api/v1/chat-room/mark-read/22');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room/mark-read/22"
);

fetch(url, {
    method: "PUT",
}).then(response => response.json());

Request      

PUT chat-room/mark-read/{id}

URL Parameters

id  string  

The ID of the mark read.

GET chat-room/{id}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat-room/442"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat-room/442');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room/442"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat-room/{id}

URL Parameters

id  string  

The ID of the chat room.

DELETE chat-room/{id}

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/chat-room/244813"
$client = new \GuzzleHttp\Client();
$response = $client->delete('https://demo.metafox.app/api/v1/chat-room/244813');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat-room/244813"
);

fetch(url, {
    method: "DELETE",
}).then(response => response.json());

Request      

DELETE chat-room/{id}

URL Parameters

id  string  

The ID of the chat room.

Display the specified resource.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat/download/3"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat/download/3');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat/download/3"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat/download/{id}

URL Parameters

id  string  

The ID of the download.

PUT chat/react/{id}

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/chat/react/812" \
    --header "Content-Type: application/json" \
    --data "{
    "remove": true
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/chat/react/812',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'remove' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat/react/812"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remove": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT chat/react/{id}

URL Parameters

id  string  

The ID of the react.

Body Parameters

react  string optional  

remove  boolean optional  

PUT chat/remove/{id}

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/chat/remove/6842068"
$client = new \GuzzleHttp\Client();
$response = $client->put('https://demo.metafox.app/api/v1/chat/remove/6842068');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat/remove/6842068"
);

fetch(url, {
    method: "PUT",
}).then(response => response.json());

Request      

PUT chat/remove/{id}

URL Parameters

id  string  

The ID of the remove.

GET chat/{id}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chat/2"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/chat/2');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat/2"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET chat/{id}

URL Parameters

id  string  

The ID of the chat.

PUT chat/{id}

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/chat/9"
$client = new \GuzzleHttp\Client();
$response = $client->put('https://demo.metafox.app/api/v1/chat/9');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chat/9"
);

fetch(url, {
    method: "PUT",
}).then(response => response.json());

Request      

PUT chat/{id}

PATCH chat/{id}

URL Parameters

id  string  

The ID of the chat.

Body Parameters

message  string optional  

type  string optional  

ChatPlus

App name: ChatPlus Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

GET chatplus/can-create-direct-message/{type}/{id_from}/{id_to}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/can-create-direct-message///" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/can-create-direct-message///',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/can-create-direct-message///"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/can-create-direct-message/{type}/{id_from}/{id_to}

URL Parameters

type  string  

id_from  string  

id_to  string  

GET chatplus/export-users

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/export-users" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/export-users',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/export-users"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/export-users

GET chatplus/jobs

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/jobs" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/jobs',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/jobs"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/jobs

GET chatplus/me

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/me" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/me',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/me"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/me

GET chatplus/prefetch-users

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/prefetch-users" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/prefetch-users',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/prefetch-users"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/prefetch-users

POST chatplus/rooms/upload/{room_id}

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/chatplus/rooms/upload/" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "userId": null,
    "roomId": null,
    "token": null,
    "file": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/chatplus/rooms/upload/',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'userId' => null,
            'roomId' => null,
            'token' => null,
            'file' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/rooms/upload/"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "userId": null,
    "roomId": null,
    "token": null,
    "file": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST chatplus/rooms/upload/{room_id}

URL Parameters

room_id  string  

The ID of the room.

Body Parameters

userId  string  

roomId  string  

token  string  

msg  string optional  

file  object  

GET chatplus/settings

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/settings" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/settings',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/settings"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/settings

GET chatplus/spotlight

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/spotlight" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/spotlight',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/spotlight"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/spotlight

GET chatplus/user/{type}/{query}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/chatplus/user//" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/chatplus/user//',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/chatplus/user//"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET chatplus/user/{type}/{query}

URL Parameters

type  string  

query  string  

Comment

App name: Comment Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Browse comments.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
            'excludes' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET comment

Body Parameters

item_id  number  

item_type  string  

parent_id  number optional  

page  number optional  

Must be at least 1.

limit  number optional  

sort  string optional  

sort_type  string optional  

last_id  number optional  

excludes  number[] optional  

comment_id  integer optional  

Create comment.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/comment" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/comment',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST comment

Body Parameters

item_id  number  

item_type  string  

text  string optional  

This field is required when none of photo_id and sticker_id are present.

parent_id  number optional  

photo_id  number optional  

sticker_id  number optional  

captcha  string optional  

GET comment-lists

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment-lists" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment-lists',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
            'excludes' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment-lists"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET comment-lists

Body Parameters

item_id  number  

item_type  string  

parent_id  number optional  

page  number optional  

Must be at least 1.

limit  number optional  

sort  string optional  

sort_type  string optional  

last_id  number optional  

excludes  number[] optional  

comment_id  integer optional  

GET comment/download/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment/download/2" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment/download/2',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/download/2"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET comment/download/{id}

URL Parameters

id  string  

The ID of the download.

POST comment/hide

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/comment/hide" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "comment_id": null,
    "is_hidden": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/comment/hide',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'comment_id' => null,
            'is_hidden' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/hide"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "comment_id": null,
    "is_hidden": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST comment/hide

Body Parameters

comment_id  number  

is_hidden  string  

is_global  string optional  

GET comment/history-edit/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment/history-edit/2" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment/history-edit/2',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/history-edit/2"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET comment/history-edit/{id}

URL Parameters

id  string  

The ID of the history edit.

GET comment/preview/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment/preview/241" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment/preview/241',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/preview/241"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET comment/preview/{id}

URL Parameters

id  string  

The ID of the preview.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment/related-comment" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment/related-comment',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'item_id' => null,
            'item_type' => null,
            'excludes' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/related-comment"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "item_id": null,
    "item_type": null,
    "excludes": [
        null
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

View comment.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/comment/6" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/comment/6',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/6"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET comment/{id}

URL Parameters

id  string  

The ID of the comment.

Update comment.

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/comment/86" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/comment/86',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/86"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT comment/{id}

PATCH comment/{id}

URL Parameters

id  string  

The ID of the comment.

Body Parameters

text  string optional  

photo_id  string optional  

is_hide  number optional  

sticker_id  string optional  

Remove comment.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/comment/3" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/comment/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/3"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE comment/{id}

URL Parameters

id  string  

The ID of the comment.

PATCH comment/{id}/remove-preview

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/comment/2383272/remove-preview" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/comment/2383272/remove-preview',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/comment/2383272/remove-preview"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH comment/{id}/remove-preview

URL Parameters

id  string  

The ID of the comment.

Contact

App name: Contact Version: 5.0.6 Author: phpFox Updated at: Jul 26, 2023

Store item.

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/contact" \
    --header "Content-Type: application/json" \
    --data "{
    "category_id": null,
    "full_name": null,
    "subject": null,
    "email": null,
    "message": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'category_id' => null,
            'full_name' => null,
            'subject' => null,
            'email' => null,
            'message' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/contact"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "category_id": null,
    "full_name": null,
    "subject": null,
    "email": null,
    "message": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST contact

Body Parameters

category_id  integer  

full_name  string  

Must be between 1 and 255 characters.

subject  string  

Must be between 1 and 255 characters.

email  string  

Must be a valid email address. Must be between 1 and 255 characters.

message  string  

send_copy  integer optional  

captcha  string optional  

Core

App name: Core Version: 5.1.3 Author: phpFox Updated at: Jul 26, 2023

View frontend settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/admin/settings/{revision?}"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/admin/settings/{revision?}');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/admin/settings/{revision?}"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/admin/settings/{revision?}

URL Parameters

revision  string optional  

GET core/custom-privacy-option

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/custom-privacy-option"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/custom-privacy-option');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/custom-privacy-option"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/custom-privacy-option

Body Parameters

item_type  string optional  

item_id  number optional  

page  number optional  

Must be at least 1.

limit  number optional  

sort  string optional  

sort_type  string optional  

POST core/custom-privacy-option

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/core/custom-privacy-option" \
    --header "Content-Type: application/json" \
    --data "{
    "name": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/core/custom-privacy-option',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/custom-privacy-option"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST core/custom-privacy-option

Body Parameters

name  string  

Must not be greater than 64 characters.

GET core/custom-privacy-option/form

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/custom-privacy-option/form"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/custom-privacy-option/form');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/custom-privacy-option/form"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/custom-privacy-option/form

GET core/form/{formName}/{id?}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/form//21"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/form//21');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/form//21"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/form/{formName}/{id?}

URL Parameters

formName  string  

id  string optional  

The ID of the .

View app settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/mobile/action-settings"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/mobile/action-settings');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/mobile/action-settings"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/mobile/action-settings

View app settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/mobile/app-settings"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/mobile/app-settings');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/mobile/app-settings"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/mobile/app-settings

GET core/mobile/form/{formName}/{id?}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/mobile/form//3"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/mobile/form//3');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/mobile/form//3"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/mobile/form/{formName}/{id?}

URL Parameters

formName  string  

id  string optional  

The ID of the .

View app settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/mobile/settings/{revision?}"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/mobile/settings/{revision?}');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/mobile/settings/{revision?}"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/mobile/settings/{revision?}

URL Parameters

revision  string optional  

GET core/package/build/callback

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/package/build/callback" \
    --header "Content-Type: application/json" \
    --data "{
    "buildId": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/core/package/build/callback',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'buildId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/package/build/callback"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "buildId": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET core/package/build/callback

Body Parameters

buildId  string  

View user badge status.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/status"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/status');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/status"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/status

GET core/translation/{group}/{lang?}/{revision?}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/translation///"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/translation///');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/translation///"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/translation/{group}/{lang?}/{revision?}

URL Parameters

group  string  

lang  string optional  

revision  string optional  

Get canonical URL.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/url-to-route" \
    --header "Content-Type: application/json" \
    --data "{
    "url": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/core/url-to-route',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'url' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/url-to-route"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "url": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET core/url-to-route

Body Parameters

url  string  

View frontend settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/web/action-settings"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/web/action-settings');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/web/action-settings"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/web/action-settings

View frontend settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/web/app-settings"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/web/app-settings');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/web/app-settings"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/web/app-settings

View frontend settings.

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/core/web/settings/{revision?}"
$client = new \GuzzleHttp\Client();
$response = $client->get('https://demo.metafox.app/api/v1/core/web/settings/{revision?}');
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/core/web/settings/{revision?}"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Request      

GET core/web/settings/{revision?}

URL Parameters

revision  string optional  

Upload single.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/file" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "file": null,
    "thumbnail_sizes": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/file',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'file' => null,
            'thumbnail_sizes' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/file"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "file": null,
    "thumbnail_sizes": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST file

Body Parameters

storage_id  string optional  

file  string  

file_type  string optional  

item_type  string optional  

thumbnail_sizes  string[] optional  

base64  string optional  

Upload multiple file.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/files" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "thumbnail_sizes": [
        null
    ],
    "file": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/files',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'thumbnail_sizes' => [
                null,
            ],
            'file' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/files"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "thumbnail_sizes": [
        null
    ],
    "file": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST files

Body Parameters

storage_id  string optional  

0  string optional  

item_type  string optional  

upload_type  string optional  

thumbnail_sizes  string[] optional  

file  string[]  

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/link/fetch" \
    --header "Content-Type: application/json" \
    --data "{
    "link": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/link/fetch',
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'link' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/link/fetch"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "link": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Event

App name: Event Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event

Body Parameters

q  string optional  

view  string optional  

sort  string optional  

sort_type  string optional  

when  string optional  

category_id  number optional  

user_id  number optional  

owner_id  integer optional  

event_id  number optional  

page  number optional  

Must be at least 1.

where  string optional  

Must be at least 2 characters.

lat  number optional  

lng  number optional  

radius  number optional  

Must be at least 1.

limit  number optional  

is_online  number optional  

is_featured  number optional  

bounds_west  number optional  

bounds_east  number optional  

bounds_south  number optional  

bounds_north  number optional  

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "name": null,
    "attachments": [
        null
    ],
    "categories": [
        null
    ],
    "is_online": null,
    "event_url": "https:\/\/boyer.net\/fugiat-iste-deserunt-ab-est-totam.html",
    "start_time": "2020-07-20",
    "end_time": "2082-07-17",
    "privacy": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => null,
            'attachments' => [
                null,
            ],
            'categories' => [
                null,
            ],
            'is_online' => null,
            'event_url' => 'https://boyer.net/fugiat-iste-deserunt-ab-est-totam.html',
            'start_time' => '2020-07-20',
            'end_time' => '2082-07-17',
            'privacy' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": null,
    "attachments": [
        null
    ],
    "categories": [
        null
    ],
    "is_online": null,
    "event_url": "https:\/\/boyer.net\/fugiat-iste-deserunt-ab-est-totam.html",
    "start_time": "2020-07-20",
    "end_time": "2082-07-17",
    "privacy": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST event

Body Parameters

name  string  

text  string optional  

file  object optional  

file.file_type  string optional  

This field is required when file is present.

file.temp_file  number optional  

This field is required when file is present.

attachments  number[] optional  

attachments[].id  number optional  

attachments[].status  string optional  

categories  number[] optional  

owner_id  number optional  

is_online  number  

event_url  string optional  

This field is required when is_online is 1. Must be a valid URL.

start_time  string  

Must be a valid date. Must be a date before end_time.

end_time  string  

Must be a valid date. Must be a date after start_time.

location  object optional  

This field is required when is_online is 0.

privacy  string  

host  object optional  

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event-category" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event-category',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-category"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event-category

Body Parameters

id  number optional  

page  number optional  

Must be at least 1.

q  string optional  

level  number optional  

limit  number optional  

Must be at least 10.

POST event-code

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event-code" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event-code',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-code"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST event-code

Body Parameters

event_id  number  

refresh  integer optional  

POST event-code/accept/{code}

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event-code/accept/" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event-code/accept/',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-code/accept/"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST event-code/accept/{code}

URL Parameters

code  string  

GET event-code/verify/{code}

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event-code/verify/" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event-code/verify/',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-code/verify/"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event-code/verify/{code}

URL Parameters

code  string  

PUT event-host-invite

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/event-host-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "accept": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/event-host-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'accept' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-host-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "accept": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT event-host-invite

Body Parameters

event_id  number  

accept  number  

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event-host-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event-host-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-host-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_id": null
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE event-host-invite

Body Parameters

event_id  number  

user_id  string  

GET event-host-invite

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event-host-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event-host-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-host-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET event-host-invite

Body Parameters

event_id  number  

page  number optional  

Must be at least 1.

limit  number optional  

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event-host-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_ids": [
        null
    ],
    "users": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event-host-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_ids' => [
                null,
            ],
            'users' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-host-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_ids": [
        null
    ],
    "users": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST event-host-invite

Body Parameters

event_id  number  

user_ids  number[] optional  

users  number[] optional  

users[].id  number optional  

PUT event-invite

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/event-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "accept": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/event-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'accept' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "accept": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT event-invite

Body Parameters

event_id  number  

accept  number  

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_id": null
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE event-invite

Body Parameters

event_id  number  

user_id  string  

GET event-invite

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET event-invite

Body Parameters

event_id  number  

page  number optional  

Must be at least 1.

limit  number optional  

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event-invite" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_ids": [
        null
    ],
    "users": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event-invite',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_ids' => [
                null,
            ],
            'users' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-invite"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_ids": [
        null
    ],
    "users": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST event-invite

Body Parameters

event_id  number  

user_ids  number[] optional  

users  number[] optional  

users[].id  number optional  

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event-member" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event-member',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET event-member

Body Parameters

q  string optional  

event_id  number  

view  string optional  

page  number optional  

Must be at least 1.

limit  number optional  

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event-member" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event-member',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST event-member

Body Parameters

event_id  number  

invite_code  string optional  

DELETE event-member/host

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event-member/host" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event-member/host',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member/host"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_id": null
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE event-member/host

Body Parameters

event_id  number  

user_id  number  

PUT event-member/interest/{id}

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/event-member/interest/7" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "interest": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/event-member/interest/7',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'interest' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member/interest/7"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "interest": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT event-member/interest/{id}

URL Parameters

id  string  

The ID of the interest.

Body Parameters

interest  number  

invite_code  string optional  

DELETE event-member/member

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event-member/member" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "event_id": null,
    "user_id": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event-member/member',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'event_id' => null,
            'user_id' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member/member"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "event_id": null,
    "user_id": null
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE event-member/member

Body Parameters

event_id  number  

user_id  number  

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event-member/1" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event-member/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event-member/1"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE event-member/{id}

URL Parameters

id  string  

The ID of the event member.

Body Parameters

not_invite_again  string optional  

PATCH event/approve/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/event/approve/98" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/event/approve/98',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/approve/98"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH event/approve/{id}

URL Parameters

id  string  

The ID of the approve.

PATCH event/feature/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/event/feature/596" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "feature": "1"
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/event/feature/596',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'feature' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/feature/596"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "feature": "1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH event/feature/{id}

URL Parameters

id  string  

The ID of the feature.

Body Parameters

feature  number  

Must be one of 0 or 1.

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event/setting/form/9048" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event/setting/form/9048',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/setting/form/9048"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event/setting/form/{id}

URL Parameters

id  string  

The ID of the form.

PUT event/setting/{id}

requires authentication

Example request:
curl --request PUT \
    "https://demo.metafox.app/api/v1/event/setting/1" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "pending_mode": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://demo.metafox.app/api/v1/event/setting/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'pending_mode' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/setting/1"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pending_mode": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT event/setting/{id}

URL Parameters

id  string  

The ID of the setting.

Body Parameters

pending_mode  number  

Sponsor event in feed.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/event/sponsor-in-feed/0930" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sponsor": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/event/sponsor-in-feed/0930',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sponsor' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/sponsor-in-feed/0930"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sponsor": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH event/sponsor-in-feed/{id}

URL Parameters

id  string  

The ID of the sponsor in feed.

Body Parameters

sponsor  number  

PATCH event/sponsor/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/event/sponsor/23435" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "sponsor": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/event/sponsor/23435',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'sponsor' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/sponsor/23435"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sponsor": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH event/sponsor/{id}

URL Parameters

id  string  

The ID of the sponsor.

Body Parameters

sponsor  string  

Display the specified resource.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event/114" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event/114',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/114"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event/{id}

URL Parameters

id  string  

The ID of the event.

Body Parameters

invite_code  string optional  

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/event/838270" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/event/838270',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/838270"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE event/{id}

URL Parameters

id  string  

The ID of the event.

POST event/{id}/mass-email

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/event/346123/mass-email" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/event/346123/mass-email',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/346123/mass-email"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST event/{id}/mass-email

URL Parameters

id  string  

The ID of the event.

Body Parameters

subject  string optional  

text  string optional  

GET event/{id}/stats

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/event/38/stats" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/event/38/stats',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/event/38/stats"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET event/{id}/stats

URL Parameters

id  string  

The ID of the event.

Feed

App name: Feed Version: 5.0.7 Author: phpFox Updated at: Jul 26, 2023

Browse feed item.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/feed" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "related_comment_friend_only": "1",
    "sponsored_feed_ids": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/feed',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'related_comment_friend_only' => '1',
            'sponsored_feed_ids' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "related_comment_friend_only": "1",
    "sponsored_feed_ids": [
        null
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET feed

Body Parameters

q  string optional  

page  number optional  

Must be at least 1.

limit  number optional  

user_id  integer optional  

Must be at least 1.

item_id  number optional  

item_type  string optional  

hashtag  string optional  

last_feed_id  number optional  

related_comment_friend_only  string optional  

Must be one of 0 or 1.

view  string optional  

from  string optional  

type_id  string optional  

sort  string optional  

sort_type  string optional  

status  string optional  

is_preview_tag  string optional  

has_pin_post  string optional  

sponsored_feed_ids  integer[] optional  

Must be at least 1.

Create feed.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/feed" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "post_type": null,
    "tagged_friends": [
        null
    ]
}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/feed',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'post_type' => null,
            'tagged_friends' => [
                null,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "post_type": null,
    "tagged_friends": [
        null
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST feed

Body Parameters

post_type  string  

privacy  string optional  

status_background_id  number optional  

Must be at least 1.

parent_item_id  string optional  

post_as_parent  string optional  

user_status  string optional  

location  object optional  

location.address  string optional  

location.lat  number optional  

location.lng  number optional  

tagged_friends  number[] optional  

tagged_in_photo  object[] optional  

tagged_in_photo[].friend_id  number optional  

tagged_in_photo[].px  number optional  

tagged_in_photo[].py  number optional  

PATCH feed/allow-preview/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/feed/allow-preview/3" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "is_allowed": null
}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/feed/allow-preview/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'is_allowed' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/allow-preview/3"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_allowed": null
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH feed/allow-preview/{id}

URL Parameters

id  string  

The ID of the allow preview.

Body Parameters

is_allowed  string  

Approve pending post.

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/feed/approve/0" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/feed/approve/0',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/approve/0"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH feed/approve/{id}

URL Parameters

id  string  

The ID of the approve.

PATCH feed/archive/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/feed/archive/0" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/feed/archive/0',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/archive/0"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH feed/archive/{id}

URL Parameters

id  string  

The ID of the archive.

GET feed/check-new

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/feed/check-new" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/feed/check-new',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/check-new"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET feed/check-new

Body Parameters

last_feed_id  number optional  

last_pin_feed_id  number optional  

last_sponsored_feed_id  number optional  

hot fix because of /api/v1/feed/create crashed.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/feed/create" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/feed/create',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/create"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET feed/create

PATCH feed/decline/{id}

requires authentication

Example request:
curl --request PATCH \
    "https://demo.metafox.app/api/v1/feed/decline/886017" \
    --header "Authorization: Bearer {accessToken}" \
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://demo.metafox.app/api/v1/feed/decline/886017',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/decline/886017"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH feed/decline/{id}

URL Parameters

id  string  

The ID of the decline.

Body Parameters

is_block_author  string optional  

Get status for edit.

requires authentication

GET: feed/edit/{id}

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/feed/edit/5" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/feed/edit/5',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/edit/5"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET feed/edit/{id}

URL Parameters

id  string  

The ID of the edit.

Browse snooze.

requires authentication

Example request:
curl --request GET \
    --get "https://demo.metafox.app/api/v1/feed/hidden" \
    --header "Authorization: Bearer {accessToken}" \
    --header "Content-Type: application/json" \
    --data "{
    "type": "group"
}"
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.metafox.app/api/v1/feed/hidden',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'group',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/hidden"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "group"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET feed/hidden

Body Parameters

user_id  number optional  

Must be at least 1.

page  number optional  

Must be at least 1.

limit  number optional  

type  string optional  

Must be one of friend, page, or group.

q  string optional  

Remove snooze.

requires authentication

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/feed/hidden/716631" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/feed/hidden/716631',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/hidden/716631"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE feed/hidden/{id}

URL Parameters

id  string  

The ID of the hidden.

Hide a user.

requires authentication

POST: feed/hide-all/{id}

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/feed/hide-all/27267" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/feed/hide-all/27267',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/hide-all/27267"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST feed/hide-all/{id}

URL Parameters

id  string  

The ID of the hide all.

UnHide a user.

requires authentication

DELETE: feed/hide-all/{id}

Example request:
curl --request DELETE \
    "https://demo.metafox.app/api/v1/feed/hide-all/9654959" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.metafox.app/api/v1/feed/hide-all/9654959',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/hide-all/9654959"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE feed/hide-all/{id}

URL Parameters

id  string  

The ID of the hide all.

Hide a feed.

requires authentication

Example request:
curl --request POST \
    "https://demo.metafox.app/api/v1/feed/hide-feed/3912570" \
    --header "Authorization: Bearer {accessToken}"
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.metafox.app/api/v1/feed/hide-feed/3912570',
    [
        'headers' => [
            'Authorization' => 'Bearer {accessToken}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://demo.metafox.app/api/v1/feed/hide-feed/3912570"
);

const headers = {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request