Tip:
In case you do not have a hosting account elsewhere, feel free to use our 100MB micro hosting for your App (included in your App subscription, no additional fees required).
Our first Content API in the MENA Region composed of a series of Cloud Microservices, working interchangeably your SSO Account.
The goal is to take over the complex infrastructure, database, storage, and scalability requirements, and leave the frontend channels for you to work in hassle-free environment, with the power of content reuse and multi-language translations. The result is a significant time saving.
Your primary profile, where you create web/mobile Apps for your customers. Each App has its own Content and API, with app-specific users (useful to give access to your customers on content management only). In addition to your billing information and history.
Custom tool made specifically for end-users (your customers), designed based on common-sense usability rule, in order to lift any technical barriers between them and the system.
This is what it's all about, the actual RESTful API you're going to use for building their web/mobile apps rapidly.
Furthermore, you won't have to worry about losing your content anymore, we protect your content and take a backup on regular basis.
Also you're going to benefit from our free updates, we always work on our CMS and our API to add new features matches the latest technologies.
We host our servers on the cloud, so you'll never have to worry about
scalability or how many requests your app might require.
You'll use
our one account given to you across all of our Cloud Services (APPS, CMS, and API) using SSO (Single-Sign On).
All uploads will be stored on
and delivered from our Cloud Storage.
Using our RESTful API is easy in 3 steps:
In case you do not have a hosting account elsewhere, feel free to use our 100MB micro hosting for your App (included in your App subscription, no additional fees required).
Making API Requests is fairly simple, yet you need to do it carefully, where our servers have strict access to each App in an effort to protect your customers' content.
# | Option | Value | Required | Notes |
---|---|---|---|---|
1 | Endpoint | https://api.oggeh.com | Yes | |
2 | Method | POST | Yes | |
3 | URL Parameter | api_key=[APP_API_KEY] | Yes | |
4 | URL Parameter | lang=[LANGUAGE_CODE] | No | Supported languages codes are: en, ar, fr, de, it, fa, ru |
5 | URL Parameter | api_secret=[APP_API_SECRET] | No | |
6 | Request Body | [{"method":"[VALID_API_METHOD]"}] | Yes | Must be a JSON String, and contains at least one valid method (see API Reference). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.pages"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Request JSON body is composed of an Array, each element must have a valid method. This enables stacking multiple API Responses at once.
For a quick demonstration of our API Usage, we've created a few client libraries that guides you throughout the Frontend implementation (we'll keep updating this section as long as we have to).
Follow our official Github repository for instant updates.
# | Library | Description |
---|---|---|
1 | Web Component |
Custom element custom element <oggeh-content></oggeh-content> for automating our Content Delivery API. Perfect for skills limited to HTML only.
|
1 | JavaScript SDK | Custom implementation for both client-side JavaScript projects, as well as NodeJS. |
2 | Twig Extension | Custom implementation on top of Twig template engine, for more control over our API Response (conditional statements, loops, and custom functionality). |
3 | HTML Parser (deprecated) | Custom HTML tag for automating our Content Delivery API. Perfect for skills limited to HTML and CSS only. |
This is what it's all about, you should be able to make API Requests at
this point (see
Developer Access).
Typical JSON Response consists of the following:
{
"error": "",
"stack": [
{
"error": "",
"alias": "",
"method": "",
"output": []
}
],
"time": 0.0000
}
Since the request JSON body is already an Array (to enable stacking multiple API Responses at once), you'll get multiple responses for each request method, which is represented at the response attribute stack. Each response has a method attribute mapped to your original request, and an output attribute representing your actual response for that particular method.
Notice the alias attribute in response JSON, you can make use of this to mark each individual request method while you parse multiple responses.
You can review and test your app API Response using our API Console.
The following section represents all available API Methods:
Returns App configuration.
# | Name | Default Value | Required | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.app | Yes | |||||||||||||||||||
2 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.app","select":"title,domain,currency,default_lang,languages,meta,social"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns nested tree of App pages.
# | Name | Default Value | Required | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.pages | Yes | |||||||||||||||||||||||
2 | start_key | No | unique page identifier. | |||||||||||||||||||||||
3 | model | No |
a string with the following options (omit to include only default pages):
|
|||||||||||||||||||||||
4 | filters | No |
an optional object (key/value pairs), use page custom
model field `name` as `key` with the desired keyword as `value`
(model field names are present in api response), for
example: a custom model has a field with the name `brand`, so to
look for `LG` only brands use:
|
|||||||||||||||||||||||
5 | price | No |
an object with the following attributes (works only on `product` and `event` pages):
|
|||||||||||||||||||||||
6 | rating | 0 | No | |||||||||||||||||||||||
7 | start | 0 | No | |||||||||||||||||||||||
8 | limit | 0 | No | |||||||||||||||||||||||
9 | depth | 0 | No | |||||||||||||||||||||||
10 | has_childs | false | No | required when depth >= 1 | ||||||||||||||||||||||
11 | include_childs | false | No | whether to include childs in response | ||||||||||||||||||||||
12 | include_hidden | false | No | |||||||||||||||||||||||
13 | only_hidden | false | No | |||||||||||||||||||||||
14 | only_locked | false | No | |||||||||||||||||||||||
15 | only_sale | false | No | |||||||||||||||||||||||
16 | only_special | false | No | |||||||||||||||||||||||
17 | only_models | false | No | returns flat list of pages at the specified model | ||||||||||||||||||||||
18 | select | No |
comma-separated attributes to be filtered from the response
output.
|
|||||||||||||||||||||||
19 | block_type | No |
comma-separated types to be filtered from the
blocks attribute above.
|
|||||||||||||||||||||||
20 | sort | No |
an object with the following attributes (works only on `product` and `event` pages):
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.pages","start_key":"","start":0,"limit":0,"depth":0,"rating":0,"has_childs":true,"include_childs":true,"include_hidden":false,"only_hidden":false,"only_locked":false,"only_sale":false,"only_special":false,"only_models":false,"select":"key,path,subject,header,tags,cover,photos,audio,videos,files,blocks","block_type":"rte,media,table,files,form","sort":{"by":"latest","order":"asc"}}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Response page model key/value pairs include:
name | string | model field name |
label | string | model field label |
value | string or object | either a single value or an object with label/value pairs (for multiple option field). |
unit | string | optional model field unit, works only on numeric model fields. |
pricing | string | optional model field pricing type, either `fixed` or `percent`, works only on numeric model fields. |
filter | boolean | optional model filter field, useful for filtering pages (see Get Pages) |
Returns total count of matching pages.
# | Name | Default Value | Required | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.pages.count | Yes | |||||||
2 | start_key | No | unique page identifier. | |||||||
3 | model | No |
a string with the following options (omit to include only default pages):
|
|||||||
4 | filters | No |
an optional object (key/value pairs), use page custom
model field `name` as `key` with the desired keyword as `value`
(model field names are present in api response), for
example: a custom model has a field with the name `brand`, so to
look for `LG` only brands use:
|
|||||||
5 | price | No |
an object with the following attributes (works only on `product` and `event` pages):
|
|||||||
6 | rating | 0 | No | |||||||
7 | start | 0 | No | |||||||
8 | limit | 0 | No | |||||||
9 | depth | 0 | No | |||||||
10 | has_childs | false | No | required when depth >= 1 | ||||||
11 | include_childs | false | No | whether to include childs in response | ||||||
12 | include_hidden | false | No | |||||||
13 | only_hidden | false | No | |||||||
14 | only_locked | false | No | |||||||
15 | only_sale | false | No | |||||||
16 | only_special | false | No | |||||||
17 | only_models | false | No | returns flat list of pages at the specified model |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.pages.count","start_key":"","start":0,"limit":0,"depth":0,"rating":0,"has_childs":true,"include_childs":true,"include_hidden":false,"only_hidden":false,"only_locked":false,"only_sale":false,"only_special":false,"only_models":false]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns available filters on matching pages.
# | Name | Default Value | Required | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.pages.filters | Yes | |||||||||||||||||||||||
2 | start_key | No | unique page identifier. | |||||||||||||||||||||||
3 | model | No |
a string with the following options (omit to include only default pages):
|
|||||||||||||||||||||||
4 | filters | No |
an optional object (key/value pairs), use page custom
model field `name` as `key` with the desired keyword as `value`
(model field names are present in api response), for
example: a custom model has a field with the name `brand`, so to
look for `LG` only brands use:
|
|||||||||||||||||||||||
5 | price | No |
an object with the following attributes (works only on `product` and `event` pages):
|
|||||||||||||||||||||||
6 | rating | 0 | No | |||||||||||||||||||||||
7 | start | 0 | No | |||||||||||||||||||||||
8 | limit | 0 | No | |||||||||||||||||||||||
9 | depth | 0 | No | |||||||||||||||||||||||
10 | has_childs | false | No | required when depth >= 1 | ||||||||||||||||||||||
11 | include_childs | false | No | whether to include childs in response | ||||||||||||||||||||||
12 | include_hidden | false | No | |||||||||||||||||||||||
13 | only_hidden | false | No | |||||||||||||||||||||||
14 | only_locked | false | No | |||||||||||||||||||||||
15 | only_sale | false | No | |||||||||||||||||||||||
16 | only_special | false | No | |||||||||||||||||||||||
17 | only_models | false | No | returns flat list of pages at the specified model | ||||||||||||||||||||||
18 | select | No |
comma-separated attributes to be filtered from the response
output.
|
|||||||||||||||||||||||
19 | block_type | No |
comma-separated types to be filtered from the
blocks attribute above.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.pages.filters","start_key":"","start":0,"limit":0,"depth":0,"rating":0,"has_childs":true,"include_childs":true,"include_hidden":false,"only_hidden":false,"only_locked":false,"only_sale":false,"only_special":false,"only_models":false,"select":"key,path,subject,header,tags,cover,photos,audio,videos,files,blocks","block_type":"rte,media,table,files,form"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns single page.
# | Name | Default Value | Required | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.page | Yes | |||||||||||||||||||||||
2 | key | Yes | page unique identifier. | |||||||||||||||||||||||
3 | select | No |
comma-separated attributes to be filtered from the response
output.
|
|||||||||||||||||||||||
4 | block_type | No |
comma-separated types to be filtered from the
blocks attribute above.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.page","key":"[PAGE_UNIQUE_IDENTIFIER]","select":"key,path,subject,header,tags,cover,photos,audio,videos,files,blocks","block_type":"rte,media,table,files,form"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Submit form fields for a single page.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | post.page.form | Yes | |||||||||||||||
2 | key | Yes | page unique identifier. | |||||||||||||||
3 | token | Yes | unique form token (see Get Form Token). | |||||||||||||||
4 | url | No | optional page url, will be visible at the application notification emails. | |||||||||||||||
5 | customer | No |
an optional object with the following attributes:
|
|||||||||||||||
6 | extrasn | No | you might add nested objects n times for each form additional paramater you want to store with each application (key/value pairs). | |||||||||||||||
7 | ignoren | No |
an array of ignored keys at the `extras` attribute, they will
not be visible at the application notification emails and/or CMS
reports. you might add nested strings n times for each ignored key. |
|||||||||||||||
8 | field_namen | Yes | your should repeat this parameter n times for each form field name (previously received by a single page). |
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en&method=post.page.form&key=[PAGE_UNIQUE_IDENTIFIER]&token=[UNIQUE_FORM_TOKEN]&url=&customer[user_id]=&customer[user_name]=&customer[user_email]=&customer[user_phone]=&customer[user_address]=&customer[user_info][custom-key]=&extras[custom-key]=&ignore[]=&field-name-1=&field-name-2=
The system sends an email notification to your Account email address each time you receive a new submission. Additionally, your customer will be able to view all requests using our CMS.
Returns page rating(s).
# | Name | Default Value | Required | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.page.rating | Yes | |||||||
2 | key | Yes | page unique identifier. | |||||||
3 | customer | No |
an optional single customer object with the following
attributes:
|
|||||||
4 | start | 0 | No | |||||||
5 | limit | 0 | No |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.page.rating","key":"PAGE_UNIQUE_IDENTIFIER","customer":{"user_id":"","user_phone":"","user_email":""},"start":0,"limit":0}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Creates and Updates a single product page rating.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | put.page.rating | Yes | |||||||||||||||
2 | key | Yes | page unique identifier. | |||||||||||||||
3 | rating | Yes | a single page rating integer. | |||||||||||||||
4 | review | No | an optional single page review. | |||||||||||||||
5 | customer | No |
an optional object with the following attributes:
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"put.page.rating","key":"[PAGE_UNIQUE_IDENTIFIER]","rating":0,"review":"","customer":{"user_id":"","user_name":"","user_email":"","user_phone":"","user_address":"","user_info":{"user_network":"","ignore":["user_network"]}}}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns product page order(s).
# | Name | Default Value | Required | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.page.order | Yes | |||||||
2 | order | Yes without `customer` parameter |
an optional single order id. | |||||||
3 | customer | Yes without `order` parameter |
an optional single customer object with the following
attributes:
|
|||||||
4 | start | 0 | No | |||||||
5 | limit | 0 | No |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.page.order","order":0,"customer":{"user_id":"","user_phone":"","user_email":""},"start":0,"limit":0}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns event page booking(s).
# | Name | Default Value | Required | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.page.booking | Yes | |||||||
2 | order | Yes without `customer` parameter |
an optional single booking id. | |||||||
3 | customer | Yes without `order` parameter |
an optional single customer object with the following
attributes:
|
|||||||
4 | start | 0 | No | |||||||
5 | limit | 0 | No |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.page.booking","order":0,"customer":{"user_id":"","user_phone":"","user_email":""},"start":0,"limit":0}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Place a pending order a list of product pages.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | post.page.order | Yes | |||||||||||||||
2 | cart | Yes |
an object with the following attributes:
|
|||||||||||||||
3 | customer | No |
an optional object with the following attributes:
|
|||||||||||||||
4 | shipping | No |
an optional object with the following attributes:
|
|||||||||||||||
5 | extrasn | No | you might add nested objects n times for each form additional paramater you want to store with each order (key/value pairs). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"post.page.order","cart":{"items":[{"key":"[PAGE_UNIQUE_IDENTIFIER]","quantity":1,"url":""}]},"customer":{"user_id":"","user_name":"","user_email":"","user_phone":"","user_address":"","user_info":{"user_network":"","ignore":["user_network"]}},"shipping":{"geoname_id":0,"cost":0,"provider":"","tracking_code":"","shipping_info":{"reference_id":"","custom_id":"","ignore":["custom_id"]}},"extras":{"payment_id":"","custom_id":"","ignore":["custom_id"]}}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
The system sends an email notification to your Account email address each time you receive a product order. Additionally, your customer will be able to view all requests using our CMS.
Place a pending booking a list of even pages.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | post.page.booking | Yes | |||||||||||||||
2 | cart | Yes |
an object with the following attributes:
|
|||||||||||||||
3 | customer | No |
an optional object with the following attributes:
|
|||||||||||||||
4 | extrasn | No | you might add nested objects n times for each form additional paramater you want to store with each booking (key/value pairs). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"post.page.booking","cart":{"items":[{"key":"[PAGE_UNIQUE_IDENTIFIER]","quantity":1,"url":""}]},"customer":{"user_id":"","user_name":"","user_email":"","user_phone":"","user_address":"","user_info":{"user_network":"","ignore":["user_network"]}},"extras":{"payment_id":"","custom_id":"","ignore":["custom_id"]}}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
The system sends an email notification to your Account email address each time you receive an event booking. Additionally, your customer will be able to view all requests using our CMS.
Updates a single product page order.
# | Name | Default Value | Required | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | put.page.order | Yes | |||||||||
2 | order | Yes | a single order id. | |||||||||
3 | status | Yes |
a single order status with the following options:
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"put.page.order","order":0,"status":""}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Updates a single event page booking.
# | Name | Default Value | Required | Description |
---|---|---|---|---|
1 | method | put.page.booking | Yes | |
2 | order | Yes | a single booking id. | |
3 | status | Yes | a single booking status. |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"put.page.booking","order":0,"status":""}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Calculate shipping cost for a list of product pages.
# | Name | Default Value | Required | Description | ||
---|---|---|---|---|---|---|
1 | method | get.shipping.cost | Yes | |||
2 | cart | Yes |
an object with the following attributes:
|
|||
3 | geoname_id | Yes | a unique identifier for the delivery geographical location (see GeoNames Geographical Database). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.shipping.cost","cart":{"items":[{"key":"[PAGE_UNIQUE_IDENTIFIER]","quantity":1}]},"geoname_id":0}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Calculate tax cost for a list of product pages.
# | Name | Default Value | Required | Description | ||
---|---|---|---|---|---|---|
1 | method | get.tax.cost | Yes | |||
2 | cart | Yes |
an object with the following attributes:
|
|||
3 | geoname_id | Yes | a unique identifier for the delivery geographical location (see GeoNames Geographical Database). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.tax.cost","cart":{"items":[{"key":"[PAGE_UNIQUE_IDENTIFIER]","quantity":1}]},"geoname_id":0}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a single user.
# | Name | Default Value | Required | Description |
---|---|---|---|---|
1 | method | get.user | Yes | |
2 | user_id | Yes | a unique identifier for the stored user (like a facebook connect id). |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.user","user_id":""]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Creates and Updates a single user.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | put.user | Yes | |||||||||||||||
2 | user | Yes |
an object with the following attributes:
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"put.user","user":{"user_id":"","user_name":"","user_email":"","user_phone":"","user_address":"","user_info":{"user_network":"","ignore":["user_network"]}}}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a list of App albums.
# | Name | Default Value | Required | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.albums | Yes | |||||||||||||
2 | media_type | No |
comma-separated types to be filtered from the response output.
|
|||||||||||||
3 | start | 0 | No | |||||||||||||
4 | limit | 0 | No | |||||||||||||
5 | include_hidden | false | No | |||||||||||||
6 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.albums","media_type":"photo,audio,video,file","start":0,"limit":0,"include_hidden":false,"select":"id,media,label,cover,linked_key,items"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a list of photos in scheduled albums.
# | Name | Default Value | Required | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.albums.schedule | Yes | |||||||||||||||||||
2 | start_date | No | string date 'Y-m-d' | |||||||||||||||||||
3 | limit | 0 | No | |||||||||||||||||||
4 | include_hidden | false | No | |||||||||||||||||||
5 | active_only | false | No | |||||||||||||||||||
6 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.albums.schedule","start_date":"","limit":0,"include_hidden":false,"active_only":false,"select":"album_label,caption,tags,code,ext,thumbnail,regular,original,schedule"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a single album.
# | Name | Default Value | Required | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.album | Yes | |||||||||||||||||||||
2 | id/label | Yes | either use album numeric id or album string label (see Get Albums) | |||||||||||||||||||||
3 | start | 0 | No | |||||||||||||||||||||
4 | limit | 0 | No | |||||||||||||||||||||
5 | include_hidden | false | No | |||||||||||||||||||||
6 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.album","id":0,"label":"[ALBUM_LABEL]","start":0,"limit":0,"include_hidden":false,"select":"caption,tags,code,ext,cover_code,cover_ext,thumbnail,regular,original,url"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a list of App news posts.
# | Name | Default Value | Required | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.news | Yes | |||||||||||||||||||||||||
2 | start_date | No | string date 'Y-m-d' | |||||||||||||||||||||||||
3 | limit | 0 | No | |||||||||||||||||||||||||
4 | include_hidden | false | No | |||||||||||||||||||||||||
5 | select | No |
comma-separated attributes to be filtered from the response
output.
|
|||||||||||||||||||||||||
6 | block_type | No |
comma-separated types to be filtered from the
blocks attribute above.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.news","start_date":"","limit":0,"include_hidden":false,"select":"date,time,timestamp,subject,header,tags,cover,photos,audio,videos,files,blocks","block_type":"rte,media,table,files,form"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a list of App contacts.
# | Name | Default Value | Required | Description | ||||
---|---|---|---|---|---|---|---|---|
1 | method | get.contacts | Yes | |||||
2 | start | 0 | No | |||||
3 | limit | 0 | No | |||||
4 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.contacts","start":0,"limit":0,"select":"name,email"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a single contacts.
# | Name | Default Value | Required | Description | ||||
---|---|---|---|---|---|---|---|---|
1 | method | get.contact | Yes | |||||
2 | Yes | valid email address | ||||||
3 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.contact","email":"","select":"name,email"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Submit contact form fields.
# | Name | Default Value | Required | Description |
---|---|---|---|---|
1 | method | post.contact.form | Yes | |
2 | key | contact | Yes | must use contact as a default value. |
3 | token | Yes | unique form token (see Get Form Token). | |
4 | field_namen | Yes | your should repeat this parameter n times for each form field name (like name, phone, subject, and message, .. etc). |
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en&method=post.contact.form&key=contact&token=[UNIQUE_FORM_TOKEN]&field-name-1=&field-name-2=
Returns a list of App locations.
# | Name | Default Value | Required | Description | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.locations | Yes | ||||||||||||||||||
2 | start | 0 | No | ||||||||||||||||||
3 | limit | 0 | No | ||||||||||||||||||
4 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.locations","start":0,"limit":0,"select":"address,latitude,longitude"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a single location.
# | Name | Default Value | Required | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.location | Yes | |||||||||||||||
2 | latitude | Yes | valid numeric latitude. | |||||||||||||||
3 | longitude | Yes | valid numeric longitude. | |||||||||||||||
4 | select | No |
comma-separated attributes to be filtered from the response
output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.location","latitude":00.0000,"longitude":00.0000,"select":"address,latitude,longitude"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
Returns a list of models (page, album, news, contact, and location) matching search keyword.
# | Name | Default Value | Required | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method | get.search.results | Yes | |||||||||||
2 | keyword | Yes | string search keyword | |||||||||||
3 | start | 0 | No | |||||||||||
4 | limit | 0 | No | |||||||||||
5 | target | No |
comma-separated targets for the response output.
|
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.search.results","keyword":"","start":0,"limit":0,"target":"pages,news,albums,contacts,locations"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en
We store all emails encrypted in your App database, yet our API Response decrypts your app emails on the fly.
Returns a string token required to submit form fields.
# | Name | Default Value | Required | Description |
---|---|---|---|---|
1 | method | get.form.token | Yes | |
2 | key | Yes | unique form idetifier. |
curl -H "Content-Type: application/json" -X POST -d '[{"method":"get.form.token","key":"[UNIQUE_FORM_IDENTIFIER]"}]' https://api.oggeh.com/?api_key=[APP_API_KEY]&lang=en