@@ 78-89 (lines=12) @@ | ||
75 | * @return array |
|
76 | * @throws \Exception |
|
77 | */ |
|
78 | public function edit(string $org, string $billingEmail = null, string $company = null, string $email = null, |
|
79 | string $location = null, string $name = null, string $description = null): array |
|
80 | { |
|
81 | return $this->getApi()->request($this->getApi()->sprintf('/orgs/:org', $org), Request::METHOD_PATCH, [ |
|
82 | 'billing_email' => $billingEmail, |
|
83 | 'company' => $company, |
|
84 | 'email' => $email, |
|
85 | 'location' => $location, |
|
86 | 'name' => $name, |
|
87 | 'description' => $description |
|
88 | ]); |
|
89 | } |
|
90 | } |
@@ 63-75 (lines=13) @@ | ||
60 | * @return array |
|
61 | * @throws \Exception |
|
62 | */ |
|
63 | public function updateUser(string $name = null, string $email = null, string $blog = null, string $company = null, |
|
64 | string $location = null, bool $hireable = false, string $bio = null): array |
|
65 | { |
|
66 | return $this->getApi()->request($this->getApi()->sprintf('/user'), Request::METHOD_PATCH, [ |
|
67 | 'name' => $name, |
|
68 | 'email' => $email, |
|
69 | 'blog' => $blog, |
|
70 | 'company' => $company, |
|
71 | 'location' => $location, |
|
72 | 'hireable' => $hireable, |
|
73 | 'bio' => $bio |
|
74 | ]); |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Get all users |