Skip to content

Commit e62b6df

Browse files
committed
Add deafult json
1 parent f66bb8d commit e62b6df

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/Instasent/Abstracts/InstasentClient.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,35 @@ abstract class InstasentClient
1515
{
1616
/**
1717
* Endpoint URL
18-
*
18+
*
1919
* @var string
2020
*/
21-
protected $rootEndpoint = 'http://api.instasent.com';
21+
protected $rootEndpoint = 'http://api.instasent.codes';
2222

2323
/**
2424
* Secure Channel URL
25-
*
25+
*
2626
* @var string
2727
*/
28-
protected $secureChannel = 'https://api.instasent.com';
28+
protected $secureChannel = 'http://api.instasent.codes';
2929

3030
/**
3131
* Api Token
32-
*
32+
*
3333
* @var string
3434
*/
3535
protected $token;
3636

3737
/**
3838
* Use secure channel flag
39-
*
39+
*
4040
* @var boolean
4141
*/
4242
protected $useSecureChannel = true;
4343

4444
/**
4545
* InstasentClient constructor.
46-
*
46+
*
4747
* @param $token
4848
* @param bool $useSecureChannel
4949
*/
@@ -55,7 +55,7 @@ public function __construct($token, $useSecureChannel = true)
5555

5656
/**
5757
* Execute the request using curl
58-
*
58+
*
5959
* @param string $url
6060
* @param string $httpMethod
6161
* @param string $data
@@ -67,6 +67,7 @@ protected function execRequest($url, $httpMethod, $data)
6767
$curl = curl_init();
6868
$headers = array(
6969
'Authorization: Bearer '.$this->token,
70+
'Accept: application/json',
7071
);
7172

7273
curl_setopt($curl,CURLOPT_URL, $url);

0 commit comments

Comments
 (0)