You are here

SalesforceIdentityInterface.php in Salesforce Suite 8.4

Same filename and directory in other branches
  1. 5.0.x src/Rest/SalesforceIdentityInterface.php

File

src/Rest/SalesforceIdentityInterface.php
View source
<?php

namespace Drupal\salesforce\Rest;

interface SalesforceIdentityInterface {

  /**
   * Given API type and optional API version, return the API url.
   *
   * @param string $api_type
   *   The api type, e.g. rest, partner, meta.
   * @param string $api_version
   *   If given, replace {version} placeholder. Otherwise, return the raw URL.
   *
   * @return string
   *   The API url.
   */
  public function getUrl($api_type, $api_version = NULL);

}

Interfaces