Skip to content

Commit 54acf69

Browse files
committed
Finish the library and add webhook handler
1 parent d51c0f5 commit 54acf69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cldt/laravel-aircall",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "API Wrapper for the Aircall API",
55
"keywords": [
66
"cldt",

src/Aircall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct()
2525
{
2626
$this->client = Http::withHeaders([
2727
'Accept' => 'application/json',
28-
'Authorization' => 'Bearer ' . base64_decode(config('aircall.api_id') . ':' . config('aircall.api_token')),
28+
'Authorization' => 'Bearer ' . base64_encode(config('aircall.api_id') . ':' . config('aircall.api_token')),
2929
'Content-Type' => 'application/json',
3030
])->baseUrl(config('aircall.endpoint'));
3131
}

0 commit comments

Comments
 (0)