/**
  * Generate an authentication ticket for a developer account.
  *
  * @param int $developerAccountId Unique identifier of the developer account.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param UserAuthInfo $userAuthInfo Information required to authenticate a user.
  * @return MozuClient
  */
 public static function createDeveloperUserAuthTicketClient($userAuthInfo, $developerAccountId = null, $responseFields = null)
 {
     $url = DeveloperAdminUserAuthTicketUrl::createDeveloperUserAuthTicketUrl($developerAccountId, $responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($userAuthInfo);
     return $mozuClient;
 }
 private static function getResourceUrl($scope, $id = null)
 {
     switch ($scope) {
         case AuthenticationScope::TENANT:
             return TenantAdminUserAuthTicketUrl::createUserAuthTicketUrl($id, null)->getUrl();
         case AuthenticationScope::DEVELOEPR:
             return DeveloperAdminUserAuthTicketUrl::createDeveloperUserAuthTicketUrl($id, null)->getUrl();
         default:
             throw new \Exception("Not Implemented");
     }
 }