public function __construct(AccessToken $accessToken, $config) { parent::setAccessToken($accessToken); $this->config = $config; $this->deviceType = $this->config['device_type']; $this->productId = $this->config['product_id']; }