Skip to content

Commit 703074f

Browse files
authored
Update Consumer.php
1 parent 170ab62 commit 703074f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Kong/Services/Consumer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ public function delete($consumer)
4242
{
4343
return $this->client->delete('/consumers/'.$consumer);
4444
}
45+
46+
public function createCredential($consumer, $credential, $body = [])
47+
{
48+
return $this->client->post('/consumers/'.$consumer.'/'.$credential, ['body' => $body]);
49+
}
4550
}

0 commit comments

Comments
 (0)