View User profile
Fire this api to view user profile.
api/userProfile
GET
https://yourdomain.com/api/userProfile
To get user profile information
Query Parameters
Name
Type
Description
secret
string
Client secret key will goes here which you get from admin panel.
Headers
Name
Type
Description
Authorization*
string
Bearer { bearer_token without bracket }
Accept*
string
application/json
{
"code": "7efe7e04f154c1b59fc872b0b50b98eb8e230da27d250f5704346c53511926d7e2a7c74c5011c6f2",
"user": {
"id": 6,
"name": "Test",
"image": null,
"email": "test@info.com",
"verifyToken": null,
"status": 1,
"google_id": null,
"facebook_id": null,
"gitlab_id": null,
"dob": "2021-08-02",
"age": 0,
"mobile": null,
"braintree_id": null,
"code": null,
"is_admin": 0,
"is_assistant": 0,
"is_blocked": 0,
"amazon_id": null,
"created_at": "2021-08-03T14:16:37.000000Z",
"updated_at": "2021-08-03T14:16:37.000000Z",
"stripe_id": null,
"card_brand": null,
"card_last_four": null,
"trial_ends_at": null,
"google2fa_secret": null,
"google2fa_enable": 0,
"refer_code": null,
"refered_from": null
},
"paypal": [
{
"id": 1,
"user_id": 6,
"payment_id": "flw_1637658788619cb0a4b4093",
"user_name": "test",
"package_id": 2,
"price": 120,
"status": 1,
"method": "flutterwave",
"subscription_from": "2021-11-23 14:45:22",
"subscription_to": "2021-12-23 14:45:22",
"created_at": "2021-11-23T13:45:22.000000Z",
"updated_at": "2021-11-23T13:45:22.000000Z",
"plan": {
"id": 2,
"plan_id": "standard01",
"name": "Standard",
"currency": "USD",
"currency_symbol": "fa fa-dollar",
"amount": "120.00",
"interval": "month",
"interval_count": 1,
"trial_period_days": null,
"status": "active",
"screens": 2,
"download": 0,
"downloadlimit": null,
"delete_status": 1,
"created_at": "2021-08-03T14:45:30.000000Z",
"updated_at": "2021-08-23T13:10:48.000000Z",
"free": 0,
"feature": [
"1"
],
"ads_in_web": 0,
"ads_in_app": 0
}
},
],
"current_date": "2021-12-21",
"payment": "flutterwave", //payment method
"id": 10,
"current_subscription": "Standard", //package name
"payid": "flw_1637658788619cb0a4b4093", // txn id
"start": "2021-11-23 14:45:22",
"end": "2021-12-23 14:45:22",
"active": "1",
"screen": 1,
"limit": null,
"remove_ads": 0
}
{
"message": "Unauthorized !"
}
//or
{
"message": "Secret Key is required"
}
{
"message": "Invalid Secret Key !"
}
Last updated