Get started
API Endpoint https://api.yosehat.com/
YOSEHAT API provides programmatic access to read health application data. Get Data, provide oauth connection, get products, family, professionals, etc.
To use this API, you need an API key. Please contact us at pt.sedayusehat@outlook.com to get your own API key.
get languages
get profession
# Here is a curl example
curl \
-X GET https://api.yosehat.com/api/profession \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
To get characters you need to make a POST call to the following url :
https://api.yosehat.com/api/profession
Result example :
{
"success": true,
"message": "get professions data successfull",
"data": [
{
"code": "dmd",
"name": "dentist",
"desc": "Dokter Gigi (drg.)",
"title": "drg.",
"imagename": "dmd_3293f9da-e05b-462c-afaf-67275b6c149f.png"
},
{
"code": "doc",
"name": "doctor",
"desc": "Medical Doctor (M.D.)",
"title": "dr.",
"imagename": "doc_91d494da-c620-46f7-959d-afae823aa0ad.png"
},
{
"code": "bdn",
"name": "midwife",
"desc": "Bidan (Bdn)",
"title": "Bdn.",
"imagename": "bdn_09123689-4940-434d-b5fb-6f7509d055f4.png"
},
{
"code": "nrs",
"name": "nurse",
"desc": "perawat",
"title": "Ns.",
"imagename": "nrs_a4a02489-5901-473d-a4fd-20c7372f3050.png"
},
{
"code": "psy",
"name": "psychologist",
"desc": "psikolog",
"title": null,
"imagename": "psy_3071efec-a621-4758-8af8-25415ab3455e.png"
},
{
"code": "dvm",
"name": "veterinarian",
"desc": "Doctor of Veterinary Medicine (DVM)",
"title": "drh.",
"imagename": "dvm_d8b7838e-7fd0-4421-b138-7a5ee393b402.png"
}
]
}
QUERY PARAMETERS
| Field | Type | Description |
|---|---|---|
| secret_key | String | Your API key. |
| search | String | (optional) A search word to find character by name. |
| house | String | (optional) a string array of houses: |
| alive | Boolean | (optional) a boolean to filter alived characters |
| gender | String |
(optional) a string to filter character by gender: m: male f: female |
| offset | Integer | (optional - default: 0) A cursor for use in pagination. Pagination starts offset the specified offset. |
| limit | Integer | (optional - default: 10) A limit on the number of objects to be returned, between 1 and 100. |
Errors
The Westeros API uses the following error codes:
| Error Code | Meaning |
|---|---|
| X000 | Some parameters are missing. This error appears when you don't pass every mandatory parameters. |
| X001 |
Unknown or unvalid secret_key. This error appears if you use an unknow API key or if your API key expired.
|
| X002 |
Unvalid secret_key for this domain. This error appears if you use an API key non specified for your domain. Developper or Universal API keys doesn't have domain checker.
|
| X003 |
Unknown or unvalid user token. This error appears if you use an unknow user token or if the user token expired.
|