Skip to content

Commit

Permalink
Add auth connector
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpoulter committed Nov 2, 2023
1 parent 3a4867e commit 5ce8f61
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/VendAuth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace SimpleSquid\Vend;

class VendAuth extends VendConnector
{
public function resolveBaseUrl(): string
{
if (is_null($this->domainPrefix)) {
return 'https://secure.vendhq.com';
}

return "https://{$this->domainPrefix}.vendhq.com/api";
}
}

0 comments on commit 5ce8f61

Please sign in to comment.