Create a new promo code for an event
Namespace: CTCT.ServicesAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
Promocode PostPromocode(
string accessToken,
string apiKey,
string eventId,
Promocode promocode
)
Promocode PostPromocode(
string accessToken,
string apiKey,
string eventId,
Promocode promocode
)
Function PostPromocode ( _
accessToken As String, _
apiKey As String, _
eventId As String, _
promocode As Promocode _
) As Promocode
Function PostPromocode ( _
accessToken As String, _
apiKey As String, _
eventId As String, _
promocode As Promocode _
) As Promocode
Promocode^ PostPromocode(
String^ accessToken,
String^ apiKey,
String^ eventId,
Promocode^ promocode
)
Promocode^ PostPromocode(
String^ accessToken,
String^ apiKey,
String^ eventId,
Promocode^ promocode
)
abstract PostPromocode :
accessToken : string *
apiKey : string *
eventId : string *
promocode : Promocode -> Promocode
abstract PostPromocode :
accessToken : string *
apiKey : string *
eventId : string *
promocode : Promocode -> Promocode
Parameters
- accessToken
- Type: System String
Constant Contact OAuth2 access token
- apiKey
- Type: System String
The API key for the application
- eventId
- Type: System String
Event id
- promocode
- Type: CTCT.Components.EventSpot Promocode
Promocode object to be created
Return Value
The newly created Promocode