167.114.96.216/Distributed/Auditor/Services/rw_services.php?action=new_project&user_id=2&pages_to_crawl=300&p_id=fdfds797&project=test.com&user_class=1&project_class=1 /** * URL: http://167.114.96.216/Distributed/Auditor/Services/rw_services.php * * * Service to create runnow in Website Auditor * * Accepts GET params only * * @param string action=new_project * @param int user_id * @param int pages_to_crawl * @param string p_id * @param string project (domain_name) * @param int user_class (1=>new free, 2=>paid, 3=>free) * @param int project_class (1=>new, 2=>quota_increase, 3=>weekly) * * Conditions: * Create Entry: * if no entry for PID * * Update Entry: * if entry exists for PID * * Errors: * if unable to create or update entry * if GET parameters empty * if PID exists but is associated with other domain * if PID exists but is associated with other user * if PID exists and is currently processing * * Success: * if entry created/updated successfully * * Return Value: * JSON encoded array, * VALUES: * response: response message * response_code: 100(success)/101(error) * */ /** * URL: http://167.114.96.216/Distributed/Auditor/Services/rw_services.php * * * Service to increase project quota in Website Auditor * * Accepts GET params only * * @param string action=quota_increase * @param int user_id * @param int pages_to_crawl (new quota for project) * @param string p_id * @param string project (domain_name) * @param int user_class (1=>new free, 2=>paid, 3=>free) * @param int project_class (1=>new, 2=>quota_increase, 3=>weekly) * * Return Value: * JSON encoded array, * VALUES: * response: response message * response_code: 100(success)/101(error) */ /** * * URL: http://167.114.96.216/Distributed/Auditor/Services/rw_services.php * * Service to decrease project quota in Website Auditor * * Accepts GET params only * * @param string action=quota_decrease * @param int user_id * @param int pages_to_crawl (new quota for project) * @param string p_id * @param string project (domain_name) * @param int user_class (1=>new free, 2=>paid, 3=>free) * @param int project_class (1=>new, 2=>quota_increase, 3=>weekly) * * Return Value: * JSON encoded array, * VALUES: * response: response message * response_code: 100(success)/101(error) */