Changeset 896572
- Timestamp:
- 04/17/2014 06:30:14 PM (12 years ago)
- Location:
- scripted-api
- Files:
-
- 6 edited
-
tags/0.1.3/admin/create_job.php (modified) (1 diff)
-
tags/0.1.3/admin/current_jobs.php (modified) (1 diff)
-
tags/0.1.3/admin/finished_jobs.php (modified) (6 diffs)
-
tags/0.1.3/admin/settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/scripted.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scripted-api/tags/0.1.3/admin/create_job.php
r895346 r896572 31 31 } 32 32 33 $urlToSendRequest = 'https://app.scripted.com/jobs/create?key='.$apiKey.'&sandbox=false& business_id='.$_scripted_business_id.'&topic='.$topic.$fields;33 $urlToSendRequest = 'https://app.scripted.com/jobs/create?key='.$apiKey.'&sandbox=false&token='.$_scripted_business_id.'&topic='.$topic.$fields; 34 34 35 35 if($format_id!= '') -
scripted-api/tags/0.1.3/admin/current_jobs.php
r895346 r896572 14 14 15 15 if($validate) { 16 $_currentJobs = @file_get_contents('https://app.scripted.com/jobs?key='.$apiKey.'& business_id='.$_scripted_business_id.'&page='.$paged.'&per_page='.$per_page.'&');16 $_currentJobs = @file_get_contents('https://app.scripted.com/jobs?key='.$apiKey.'&token='.$_scripted_business_id.'&page='.$paged.'&per_page='.$per_page.'&'); 17 17 $_currentJobs = json_decode($_currentJobs); 18 18 -
scripted-api/tags/0.1.3/admin/finished_jobs.php
r895346 r896572 18 18 19 19 if($validate) { 20 $_finishedJobs = @file_get_contents('https://app.scripted.com/finished_jobs?key='.$apiKey.'& business_id='.$_scripted_business_id.'&page='.$paged.'&per_page='.$per_page.$sorting);20 $_finishedJobs = @file_get_contents('https://app.scripted.com/finished_jobs?key='.$apiKey.'&token='.$_scripted_business_id.'&page='.$paged.'&per_page='.$per_page.$sorting); 21 21 $_finishedJobs = json_decode($_finishedJobs); 22 22 … … 147 147 $userID = $current_user->ID; 148 148 149 $_projectContent = @file_get_contents('https://app.scripted.com/finished_jobs/show/'.$proId.'?content_format=html& business_id='.$_scripted_business_id.'&key='.$apiKey);149 $_projectContent = @file_get_contents('https://app.scripted.com/finished_jobs/show/'.$proId.'?content_format=html&token='.$_scripted_business_id.'&key='.$apiKey); 150 150 $_projectContent = json_decode($_projectContent); 151 151 if($_projectContent->id == $proId) { … … 247 247 248 248 if(wp_verify_nonce($_GET['secure'],'view_project') and $do == 'view_project') { 249 $_projectContent = @file_get_contents($scriptedBaseUrl.'finished_jobs/show/'.$project_id.'?content_format=html& business_id='.$_scripted_business_id.'&key='.$apiKey);249 $_projectContent = @file_get_contents($scriptedBaseUrl.'finished_jobs/show/'.$project_id.'?content_format=html&token='.$_scripted_business_id.'&key='.$apiKey); 250 250 $_projectContent = json_decode($_projectContent); 251 251 … … 259 259 } 260 260 }elseif(wp_verify_nonce($_GET['_wpnonce'],'create_reject_accept') and $do == 'Accept') { 261 $_projectAction = @file_get_contents($scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?accepted=true& business_id='.$_scripted_business_id.'&key='.$apiKey);261 $_projectAction = @file_get_contents($scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?accepted=true&token='.$_scripted_business_id.'&key='.$apiKey); 262 262 if($_projectAction) 263 263 echo 'Accepted'; … … 265 265 echo 'Failed'; 266 266 }elseif(wp_verify_nonce($_GET['_wpnonce'],'create_reject_accept') and $do == 'Reject') { 267 $_projectAction = @file_get_contents($scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?rejected=true& business_id='.$_scripted_business_id.'&key='.$apiKey);267 $_projectAction = @file_get_contents($scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?rejected=true&token='.$_scripted_business_id.'&key='.$apiKey); 268 268 if($_projectAction) 269 269 echo 'Accepted'; … … 278 278 else { 279 279 $chief_complaint = $_POST['chief_complaint']; 280 $url = $scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?& business_id='.$_scripted_business_id.'&key='.$apiKey;280 $url = $scriptedBaseUrl.'finished_jobs/update/'.$project_id.'?&token='.$_scripted_business_id.'&key='.$apiKey; 281 281 282 282 if(isset($_POST['chief_complaint']) and $_POST['chief_complaint'] != '') -
scripted-api/tags/0.1.3/admin/settings.php
r895346 r896572 103 103 function validateApiKey($apiKey,$businessId) 104 104 { 105 $_currentJobs = @file_get_contents('https://app.scripted.com/jobs?key='.$apiKey.'& business_id='.$businessId);105 $_currentJobs = @file_get_contents('https://app.scripted.com/jobs?key='.$apiKey.'&token='.$businessId); 106 106 return true; 107 107 if($_currentJobs != '') { -
scripted-api/trunk/readme.txt
r895346 r896572 5 5 Requires at least: 3.3 6 6 Tested up to: 3.8.3 7 Stable tag: 0.3 7 Stable tag: 0.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
scripted-api/trunk/scripted.php
r896394 r896572 5 5 Description: Manage your Scripted account from WordPress! 6 6 Author: Scripted.com 7 Version: 0.3 7 Version: 0.3.1 8 8 Author URI: https://Scripted.com/ 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.