コード例 #1
0
ファイル: Client.php プロジェクト: daanbakker1995/vanteun
 private function remote_get($url)
 {
     return Pronamic_WP_Util::remote_get_body($url, 200);
 }
コード例 #2
0
ファイル: Client.php プロジェクト: daanbakker1995/vanteun
 /**
  * Send request with the specified action and parameters
  *
  * @param string $action
  * @param array $parameters
  */
 private function send_request($data)
 {
     $url = $this->get_payment_server_url();
     return Pronamic_WP_Util::remote_get_body($url, 200, array('method' => 'POST', 'body' => array('data' => $data)));
 }
コード例 #3
0
ファイル: Client.php プロジェクト: wp-pay-gateways/paydutch
 /**
  * Request the specified message
  *
  * @param Pronamic_WP_Pay_Gateways_PayDutch_XML_RequestMessage $message
  */
 private function request(Pronamic_WP_Pay_Gateways_PayDutch_XML_RequestMessage $message)
 {
     return Pronamic_WP_Util::remote_get_body(self::API_URL, 200, array('method' => 'POST', 'sslverify' => false, 'headers' => array('Content-Type' => 'text/xml'), 'body' => (string) $message));
 }
コード例 #4
0
 /**
  * Send request with the specified action and parameters
  *
  * @param string $action
  * @param array $parameters
  */
 private function send_request($action, array $parameters = array())
 {
     $parameters = $this->get_parameters($action, $parameters);
     // WordPress functions uses URL encoding
     // @see http://codex.wordpress.org/Function_Reference/build_query
     // @see http://codex.wordpress.org/Function_Reference/add_query_arg
     $url = Pronamic_WP_Util::build_url(self::API_URL, $parameters);
     return Pronamic_WP_Util::remote_get_body($url, 200);
 }