Skip to content

Commit

Permalink
add domain and space parameter to create link
Browse files Browse the repository at this point in the history
  • Loading branch information
Farshad Badiee committed Dec 11, 2022
1 parent cfbb7d0 commit 1cbac14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Zaya.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1cbac14

Please sign in to comment.