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 ▼ url: "https://idfed.constantcontact.com/as/token.oauth2?code=1wwtp21NvvvvTMAkCvh_lVgDJ&redirect_uri=http://localhost:8080/admin/constantcontact/rljccco ▶"
content_type: null
http_code: 0
header_size: 0
request_size: 0
filetime: -1
ssl_verify_result: 0
redirect_count: 0
total_time: 0.0
namelookup_time: 0.0
connect_time: 0.0
pretransfer_time: 0.0
size_upload: 0.0
size_download: 0.0
speed_download: 0.0
speed_upload: 0.0
download_content_length: -1.0
upload_content_length: -1.0
starttransfer_time: 0.0
redirect_time: 0.0
redirect_url: ""
primary_ip: ""
certinfo: []
primary_port: 0
local_ip: ""
local_port: 0
http_version: 0
protocol: 0
ssl_verifyresult: 0
scheme: ""
appconnect_time_us: 0
connect_time_us: 0
namelookup_time_us: 0
pretransfer_time_us: 0
redirect_time_us: 0
starttransfer_time_us: 0
total_time_us: 0
}
... View more