Navigation Menu

Skip to content

Commit

Permalink
added function for form-specific URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Webster Gordon committed Jan 15, 2013
1 parent a96b0d0 commit 6ab8c6a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions class.baseclient.php
Expand Up @@ -152,6 +152,21 @@ protected function get_request_url($endpoint,$params) {
$paramstring;
}

/**
* Creates the url to be used for the api request for Forms API
*
* @param endpoint: String value for the endpoint to be used (appears after version in url)
* @param params: Array containing query parameters and values
*
* @returns String
**/
protected function get_forms_request_url($url_base,$params) {
$paramstring = $this->array_to_params($params);
return $url_base .
$this->KEY_PARAM . $this->HAPIKey .
$paramstring;
}

/**
* Executes HTTP GET request
*
Expand Down

0 comments on commit 6ab8c6a

Please sign in to comment.