Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

  • CtctOAuth2
  • SessionDataStore

Interfaces

  • CtctDataStore
  • Overview
  • Namespace
  • Class
  • Tree

Class CtctOAuth2

Class that implements necessary functionality to obtain an access token from a user

Namespace: Ctct\Auth
Package: Auth
Author: Constant Contact
Located at Ctct/Auth/CtctOAuth2.php
Methods summary
public
# __construct( mixed $client_id, mixed $client_secret, mixed $redirect_uri )
public string
# getAuthorizationUrl( boolean $server = true )

Get the URL at which the user can authenticate and authorize the requesting application

Get the URL at which the user can authenticate and authorize the requesting application

Parameters

$server
boolean
$server - Whether or not to use OAuth2 server flow, alternative is client flow

Returns

string
- url to send a user to, to grant access to their account
public array
# getAccessToken( string $code )

Obtain an access token

Obtain an access token

Parameters

$code
string
$code - code returned from Constant Contact after a user has granted access to their account

Returns

array
Properties summary
public mixed $client_id
#
public mixed $client_secret
#
public mixed $redirect_uri
#
public mixed $props
#
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0