mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-21 13:34:08 +00:00
YD curl request
This commit is contained in:
@@ -16,6 +16,7 @@ class CreatesContract
|
||||
|
||||
public function __construct(GetAccessToken $getAccessToken)
|
||||
{
|
||||
dd(Config::get('unity.url'));
|
||||
$this->createContract = Config::get('unity.url').Config::get('unity.endpoint.create_contract');
|
||||
$this->getAccessToken = $getAccessToken;
|
||||
$this->contract_hash_id = Config::get('unity.contract_template_hash_id');
|
||||
@@ -23,7 +24,7 @@ class CreatesContract
|
||||
|
||||
public function execute(){
|
||||
|
||||
$accessToken=$this->getAccessToken->execute();
|
||||
$accessToken= $this->getAccessToken->execute();
|
||||
|
||||
$response = Http::withToken($accessToken)->post($this->createContract,['contract_template_id'=>[$this->contract_hash_id]])->object();
|
||||
dd($response);
|
||||
|
||||
Reference in New Issue
Block a user