Plugin Directory

Changeset 896572


Ignore:
Timestamp:
04/17/2014 06:30:14 PM (12 years ago)
Author:
rbucks
Message:

token instead of business_id

Location:
scripted-api
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • scripted-api/tags/0.1.3/admin/create_job.php

    r895346 r896572  
    3131           }
    3232           
    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;
    3434           
    3535           if($format_id!= '')
  • scripted-api/tags/0.1.3/admin/current_jobs.php

    r895346 r896572  
    1414   
    1515    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.'&');           
    1717        $_currentJobs = json_decode($_currentJobs);
    1818       
  • scripted-api/tags/0.1.3/admin/finished_jobs.php

    r895346 r896572  
    1818   
    1919    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);           
    2121        $_finishedJobs = json_decode($_finishedJobs);       
    2222       
     
    147147    $userID = $current_user->ID;
    148148   
    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);             
    150150    $_projectContent = json_decode($_projectContent);
    151151    if($_projectContent->id == $proId) {
     
    247247   
    248248    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);             
    250250        $_projectContent = json_decode($_projectContent);
    251251       
     
    259259        }
    260260    }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);     
    262262        if($_projectAction)
    263263            echo 'Accepted';
     
    265265            echo 'Failed';
    266266    }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);     
    268268        if($_projectAction)
    269269            echo 'Accepted';
     
    278278        else {
    279279            $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;
    281281           
    282282            if(isset($_POST['chief_complaint']) and $_POST['chief_complaint'] != '')
  • scripted-api/tags/0.1.3/admin/settings.php

    r895346 r896572  
    103103function validateApiKey($apiKey,$businessId)
    104104{
    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);
    106106   return true;
    107107   if($_currentJobs != '') {
  • scripted-api/trunk/readme.txt

    r895346 r896572  
    55Requires at least: 3.3
    66Tested up to: 3.8.3
    7 Stable tag: 0.3
     7Stable tag: 0.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • scripted-api/trunk/scripted.php

    r896394 r896572  
    55Description: Manage your Scripted account from WordPress!
    66Author: Scripted.com
    7 Version: 0.3
     7Version: 0.3.1
    88Author URI: https://Scripted.com/
    99*/
Note: See TracChangeset for help on using the changeset viewer.