示例#1
0
 /**
  * Method send()
  *
  * Send the request to the server
  *
  * @param object $client The server's connection
  * @return MoipResponse
  * @access public
  */
 public function send($client = null)
 {
     $this->validate();
     if ($client == null) {
         $client = new MoipClient();
     }
     $url = $this->environment->base_url . '/ws/alpha/EnviarInstrucao/Unica';
     return $this->answer = $client->curlPost($this->credential['token'] . ':' . $this->credential['key'], $this->getXML(), $url, $this->errors);
 }