From 1cbac14132291c7814af252cc47225919bcc4d67 Mon Sep 17 00:00:00 2001 From: Farshad Badiee Date: Sun, 11 Dec 2022 17:31:35 +0330 Subject: [PATCH] add domain and space parameter to create link --- src/Zaya.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Zaya.php b/src/Zaya.php index 2a220af..de4f098 100755 --- a/src/Zaya.php +++ b/src/Zaya.php @@ -20,10 +20,12 @@ public function __construct() } - public function makeLink(string $link) + public function makeLink(string $link, string $domain = null,string $space=null) { $body = [ - 'url' => $link + 'url' => $link, + 'domain' => $domain, + 'space' => $space, ]; $response = $this->client->post($this->baseUrl . 'links', [ 'form_params' => $body,