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