From 6ab8c6a7f20f676359c9d8fcef6a7a5dac976e6d Mon Sep 17 00:00:00 2001 From: Webster Gordon Date: Tue, 15 Jan 2013 16:44:04 -0500 Subject: [PATCH] added function for form-specific URLs --- class.baseclient.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/class.baseclient.php b/class.baseclient.php index bfb9c16..6e8d6e7 100644 --- a/class.baseclient.php +++ b/class.baseclient.php @@ -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 *