Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace MauticPlugin\MauticCrmBundle\Api\Salesforce\Exception;
|
||||
|
||||
class RetryRequestException extends \Exception
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace MauticPlugin\MauticCrmBundle\Api\Salesforce\Helper;
|
||||
|
||||
class RequestUrl
|
||||
{
|
||||
/**
|
||||
* Correctly generate the URL based on given URL parts.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get($apiUrl, $queryUrl, $operation = null, $object = null)
|
||||
{
|
||||
if ($queryUrl) {
|
||||
return ($operation) ? sprintf($queryUrl.'/%s', $operation) : $queryUrl;
|
||||
}
|
||||
|
||||
return sprintf($apiUrl.'/%s/%s', $object, $operation);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user