Source of file Connection.php
Size: 0,621 Bytes - Last Modified: 2021-12-24T06:51:25+00:00
/var/www/docs.ssmods.com/process/src/src/Connection.php
123456789101112131415161718192021222324252627 | <?php namespace Heyday\Vend; use VendAPI\VendAPI; /** * Class Connector * Making calls to the VendAPI to request the access token and refresh token */ class Connection extends VendAPI { /** * instantiating the VendAPI object and passing the required parameters */ public function __construct(TokenManager $tokenManager) { $this->tokenManager = $tokenManager; $config = \SiteConfig::current_site_config(); $shopName = $config->VendShopName; $url = "https://$shopName.vendhq.com"; parent::__construct($url, 'Bearer', $tokenManager->getToken()); } } |