YD curl request

This commit is contained in:
omair saleh
2021-12-29 01:18:17 +08:00
parent 4ef90f7cf2
commit bfbe07dc8e
@@ -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);