mobilebackendgateway/app/Services/WalletService.php

42 lines
738 B
PHP
Raw Normal View History

2020-04-15 23:09:27 +00:00
<?php
namespace App\Services;
use App\Traits\ConsumesExternalService;
class WalletService
{
use ConsumesExternalService;
/**
* @var string
*/
public $baseUri ;
/**
* @var string
*/
public $key ;
public function __construct()
{
$this->baseUri = config('services.wallet_service.base_uri');
$this->key = config('services.wallet_service.key');
}
public function post($uri , $data)
{
return $this->perfomRequest('POST',$uri,$data);
}
public function get($uri , $data)
{
return $this->perfomRequest('GET',$uri,$data);
}
public function put($uri , $data)
{
return $this->perfomRequest('PUT',$uri,$data);
}
2020-04-15 23:09:27 +00:00
}