コード例 #1
0
ファイル: Mandrill.php プロジェクト: demental/m
 /**
  * Generates a structured array of valid Mandrill API calls
  * @since 1.0
  * @static
  * @ignore
  * @returns mixed Associative array of valid calls and their required parameters
  */
 private static function api_calls()
 {
     if (is_null(self::$api_calls)) {
         self::$api_calls = array('users' => array('info' => self::$required_key, 'ping' => self::$required_key, 'senders' => self::$required_key, 'disable-sender' => array_merge_recursive(self::$required_key, array('domain')), 'verify-sender' => array_merge_recursive(self::$required_key, array('email'))), 'messages' => array('send' => array_merge_recursive(self::$required_key, array('message')), 'send-template' => array_merge_recursive(self::$required_key, array('template_name', 'template_content', 'message')), 'search' => array_merge_recursive(self::$required_key, array('query', 'date_from', 'date_to', 'tags', 'senders', 'limit'))), 'tags' => array('list' => self::$required_key, 'info' => array_merge_recursive(self::$required_key, array('tag')), 'time-series' => array_merge_recursive(self::$required_key, array('tag')), 'all-time-series' => self::$required_key), 'senders' => array('list' => self::$required_key, 'info' => array_merge_recursive(self::$required_key, array('address')), 'time-series' => array_merge_recursive(self::$required_key, array('address'))), 'urls' => array('list' => self::$required_key, 'search' => array_merge_recursive(self::$required_key, array('q')), 'time-series' => array_merge_recursive(self::$required_key, array('url'))), 'templates' => array('add' => array_merge_recursive(self::$required_key, array('name', 'code')), 'info' => array_merge_recursive(self::$required_key, array('name')), 'update' => array_merge_recursive(self::$required_key, array('name', 'code')), 'delete' => array_merge_recursive(self::$required_key, array('name')), 'list' => self::$required_key), 'webhooks' => array('list' => self::$required_key, 'add' => array_merge_recursive(self::$required_key, array('url', 'events')), 'info' => array_merge_recursive(self::$required_key, array('id')), 'update' => array_merge_recursive(self::$required_key, array('id', 'url', 'events')), 'delete' => array_merge_recursive(self::$required_key, array('id'))));
     }
     return self::$api_calls;
 }