Class Model_Publisher

Description

This file contains the code for the Publisher API Service.

PHP versions 4 and 5

LICENSE: This source file is subject to version 2.02 of the PHP license, that is bundled with this package in the file LICENSE, and is available at through the world-wide-web at http://api.yesup.net. If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to <admin@yesup.com> so we can mail you a copy immediately.


	
			
Method Summary
Model_Publisher __construct ()
Array addSite (Int $user_id, String $security, Array $extra_arr)
Array getNetworkInfo (Int $user_id, String $security)
Array getPassword (Int $user_id, string $email, String $security)
Array getPublisher (Int $user_id, String $security)
Array getSite (Int $user_id, String $security, Int $site_id)
Array getSiteList (Int $user_id, String $security)
Array getStatistics (Int $user_id, String $security)
string hello ()
Array login (Int $user_id, String $password, String $security)
Array payHistory (Int $user_id, String $security, Array $extra_arr)
Array signup (String $email, String $password, Int $adminid, String $admin_name, String $security, Array $extra_arr)
Array siteDailyEarning (Int $user_id, String $security, Array $extra_arr)
Array updatePublisher (Int $user_id, String $security, Array $extra_arr)
Array updateSite (Int $user_id, String $security, Array $extra_arr)
Methods
Constructor __construct (line 28)
  • access: public
Model_Publisher __construct ()
addSite (line 438)

Add Site

  • access: public
Array addSite (Int $user_id, String $security, Array $extra_arr)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Array $extra_arr: Array keys:url,title,description,isAdult[Yes,No],acceptAdult[yes,No]
getNetworkInfo (line 225)

get Network Info

  • access: public
Array getNetworkInfo (Int $user_id, String $security)
  • Int $user_id: User ID
  • String $security: Developer security key
getPassword (line 197)

Get Password

  • access: public
Array getPassword (Int $user_id, string $email, String $security)
  • Int $user_id: User ID
  • string $email: Email address
  • String $security: Developer security key
getPublisher (line 318)

Get Publisher

  • access: public
Array getPublisher (Int $user_id, String $security)
  • Int $user_id: User ID
  • String $security: Developer security key
getSite (line 528)

Get Site

  • access: public
Array getSite (Int $user_id, String $security, Int $site_id)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Int $site_id: Site ID
getSiteList (line 491)

Get SiteList

  • access: public
Array getSiteList (Int $user_id, String $security)
  • Int $user_id: User ID
  • String $security: Developer security key
getStatistics (line 370)

Get Statistics

  • access: public
Array getStatistics (Int $user_id, String $security)
  • Int $user_id: User ID
  • String $security: Developer security key
hello (line 72)

Hello World for testing

  • access: public
string hello ()
login (line 105)

User Login

  • access: public
Array login (Int $user_id, String $password, String $security)
  • Int $user_id: User ID
  • String $password: Password
  • String $security: Developer security key
payHistory (line 634)

Payment History

  • access: public
Array payHistory (Int $user_id, String $security, Array $extra_arr)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Array $extra_arr: Array keys: $extra_arr['start'] = $start; //start page $extra_arr['limit'] = $item_per_page; //items per page $extra_arr['filters'][0]['field'] = 'date'; $extra_arr['filters'][0]['data']['comparison'] = 'gt'; // eq, gt, lt $extra_arr['filters'][0]['data']['type'] = 'date'; //string, list, boolean, numeric, date $extra_arr['filters'][0]['data']['value'] = $from_date; $extra_arr['filters'][1]['field'] = 'date'; $extra_arr['filters'][1]['data']['comparison'] = 'lt'; // eq, gt, lt $extra_arr['filters'][1]['data']['type'] = 'date'; //string, list, boolean, numeric, date $extra_arr['filters'][1]['data']['value'] = $to_date;
signup (line 139)

User Signup

  • access: public
Array signup (String $email, String $password, Int $adminid, String $admin_name, String $security, Array $extra_arr)
  • String $email: Email address
  • String $password: Password
  • Int $adminid: Admin ID
  • String $admin_name: Admin name
  • String $security: Developer security key
  • Array $extra_arr: Array keys:email,password,adminid,admin_id,phone,address,city,state,zipcode,timezone_id,website
siteDailyEarning (line 724)

Daily Earning

  • access: public
Array siteDailyEarning (Int $user_id, String $security, Array $extra_arr)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Array $extra_arr: Array description: $extra_arr['start'] = $start; // start page $extra_arr['limit'] = $item_per_page; //items per page $extra_arr['cpx'] = $statsby; // cpx $extra_arr['site_id'] = $sites; // site id $extra_arr['filters'][0]['field'] = 'date'; $extra_arr['filters'][0]['data']['comparison'] = 'gt'; // eq, gt, lt $extra_arr['filters'][0]['data']['type'] = 'date'; //string, list, boolean, numeric, date $extra_arr['filters'][0]['data']['value'] = $from_date; $extra_arr['filters'][1]['field'] = 'date'; $extra_arr['filters'][1]['data']['comparison'] = 'lt'; // eq, gt, lt $extra_arr['filters'][1]['data']['type'] = 'date'; //string, list, boolean, numeric, date $extra_arr['filters'][1]['data']['value'] = $to_date;
updatePublisher (line 266)

Update Publisher

  • access: public
Array updatePublisher (Int $user_id, String $security, Array $extra_arr)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Array $extra_arr: Array keys:payto,password,name,email,phone,address,city,state,zipcode,country,timezone_id,website,miniPay, paymethod_id[13,14,15](13 means Check,14 means Paypal,15 means Wire)
updateSite (line 564)

Update Site

  • access: public
Array updateSite (Int $user_id, String $security, Array $extra_arr)
  • Int $user_id: User ID
  • String $security: Developer security key
  • Array $extra_arr: Array keys:url,title,description,isAdult[Yes,No],acceptAdult[yes,No]

Documentation generated on Fri, 05 Nov 2010 15:16:00 -0400 by phpDocumentor 1.4.1