Retrieve Profile
Untuk mengambil profil, lakukan panggilan POST ke /profile .
Prerequisite
All API calls require authentication with
API_TOKEN Developers can authenticate their API calls with the API_TOKEN generated in App Dashboard > Phone Numbers > Detail > Api. Contoh
Sampel request:
curl -X GET 'https://waofficial.botika.online/api/whatsapp/v1/profile' \ -H 'Authorization: Bearer {{ API_TOKEN }}'
Respon yang berhasil menyertakan objek dengan pengidentifikasi untuk profil.
{
"data": {
"name": "{{ PROFILE_NAME }}",
"phone": "{{ PHONE_NUMBER }}",
"photo": "{{ PROFILE_PHOTO_LINK }}",
"description": "{{ PROFILE_DESCRIPTION }}",
"email": "{{ PROFILE_EMAIL }}",
"address": "{{ PROFILE_ADDRESS }}",
"websites": [
"{{ PROFILE_LINK }}",
...
],
"category": "{{ PROFILE_CATEGORY }}"
}
}