Pardot_API::_get_url
Simple helper function to return the URL required for an $item_type specific Pardot API.
This function could easily require significant modification to support the complete API which probably means a significant rearchitecture. However, it's a black box and it's $args 2nd parameter should enable it to evolve as needed assume the $item_type continues to be a central concept in the Pardot API.
Signature
private function _get_url(string
$item_type,
[array
$args = ] )
Parameters
$item_type
— string- Item type requested; 'account', 'form', 'campaign' and (special case) 'login' tested.
$args
— array- Authorization values ('email','password','user_key') for 'login', nothing for the rest.
Returns
- string
- Url for a valid API call.