Find expert on wowonder and CodeIgniter framework
Budget: $60 – $100 USD
I am looking for an expert on wowonder, I have an affiliate website that uses the CodeIgniter framework, I want to login via wowonder like login via facebook code as below:
How to start?
Create a development application.
Once you have created the app, you'll get APP_ID, and APP_SECRET.
Example:
To start the Oauth process, use the link https://demo.wowonder.com/oauth?app_id={YOUR_APP_ID}
Once the end user clicks this link, he/she will be redirected to the authorization page.
Once the end user authorization the app, he/she will be redirected to your domain name with a GET parameter "code", example: http://yourdomain/?code=XXX
In your code, to retrieve the authorized user info, you need to generate an access code, please use the code below:
PHP:
<?php
$app_id = 'YOUR_APP_ID'; // your application app id
$app_secret = 'YOUR_APP_SECRET'; your application app secret
$code = $_GET['code']; // the GET parameter you got in the callback: http://yourdomain/?code=XXX
$get = file_get_contents("https://demo.wowonder.com/authorize?app_id={$app_id}&app_secret={$app_secret}&code={$code}");
$json = json_decode($get, true);
if (!empty($json['access_token'])) {
$access_token = $json['access_token']; // your access token
}
?>
Once you got the access code, simple call the data you would like to retrieve, Example:
PHP:
if (!empty($json['access_token'])) {
$access_token = $json['access_token']; // your access token
$type = "get_user_data"; // or posts_data
$get = file_get_contents("https://demo.wowonder.com/app_api?access_token={$access_token}&type={$type}");
}
Respond:
Jsonoutput
{
"api_status": "success",
"api_version": "1.3",
"user_data": {
"id": "",
"username": "",
"first_name": "",
"last_name": "",
"gender": "",
"birthday": "",
"about": "",
"website": "",
"facebook": "",
"twitter": "",
"vk": "",
"google+": "",
"profile_picture": "",
"cover_picture": "",
"verified": "",
"url": ""
}
}
How to start?
Create a development application.
Once you have created the app, you'll get APP_ID, and APP_SECRET.
Example:
To start the Oauth process, use the link https://demo.wowonder.com/oauth?app_id={YOUR_APP_ID}
Once the end user clicks this link, he/she will be redirected to the authorization page.
Once the end user authorization the app, he/she will be redirected to your domain name with a GET parameter "code", example: http://yourdomain/?code=XXX
In your code, to retrieve the authorized user info, you need to generate an access code, please use the code below:
PHP:
<?php
$app_id = 'YOUR_APP_ID'; // your application app id
$app_secret = 'YOUR_APP_SECRET'; your application app secret
$code = $_GET['code']; // the GET parameter you got in the callback: http://yourdomain/?code=XXX
$get = file_get_contents("https://demo.wowonder.com/authorize?app_id={$app_id}&app_secret={$app_secret}&code={$code}");
$json = json_decode($get, true);
if (!empty($json['access_token'])) {
$access_token = $json['access_token']; // your access token
}
?>
Once you got the access code, simple call the data you would like to retrieve, Example:
PHP:
if (!empty($json['access_token'])) {
$access_token = $json['access_token']; // your access token
$type = "get_user_data"; // or posts_data
$get = file_get_contents("https://demo.wowonder.com/app_api?access_token={$access_token}&type={$type}");
}
Respond:
Jsonoutput
{
"api_status": "success",
"api_version": "1.3",
"user_data": {
"id": "",
"username": "",
"first_name": "",
"last_name": "",
"gender": "",
"birthday": "",
"about": "",
"website": "",
"facebook": "",
"twitter": "",
"vk": "",
"google+": "",
"profile_picture": "",
"cover_picture": "",
"verified": "",
"url": ""
}
}