Hi
Try to create an API program to access contacts on our constant contact account.
Following the OAuth2.0 Server Flow as described on your website.
First, I created the authorization request url, then retrieved the authorization code from it.
Then I passed the code to 'getAccessToken' function to get an access token. It returned null.
Not sure why I am getting null, could you help me?
$code = $request->input('code');
$ccAuthorizationURL= $this->getAccessToken($code);
dump($ccAuthorizationURL);
curl resource @604 ▼ : "" : null : 0 : 0 : 0 : -1 : 0 : 0 : 0.0 : 0.0 : 0.0 : 0.0 : 0.0 : 0.0 : 0.0 : 0.0 : -1.0 : -1.0 : 0.0 : 0.0 : "" : "" : [] : 0 : "" : 0 : 0 : 0 : 0 : "" : 0 : 0 : 0 : 0 : 0 : 0 : 0 }