Example #1
0
 public function request($names)
 {
     $curl = new \Api\Curl\Client();
     $response = $curl->post('http://bie.ala.org.au/ws/species/lookup/bulk', null, array('names' => $names));
     $this->_status = $response->status;
     $this->body = $response->body;
 }
Example #2
0
 /**
  * Occurence query cache request
  */
 public function paramsCacheQuery($request)
 {
     $curl = new \Api\Curl\Client();
     $response = $curl->post('http://biocache.ala.org.au/ws/webportal/params', null, array('wkt' => $request['wkt']), false);
     return $response;
 }