You are here

public function Partner::getWriteUri in Lockr 7.2

Same name and namespace in other branches
  1. 7 src/Lockr/Partner.php \Lockr\Partner::getWriteUri()

Gets the partner base URI for writing data.

Overrides PartnerInterface::getWriteUri

File

vendor/lockr/lockr-client/src/Partner.php, line 58

Class

Partner

Namespace

Lockr

Code

public function getWriteUri() {
  if ($this->region != 'us') {
    return "https://{$this->region}.{$this->partner}.api.lockr.io";
  }
  return "https://{$this->partner}.api.lockr.io";
}