public OntraportBaseCustomObject(OntraportHttpClient apiRequest, IOntraportObjects ontraObjects,
                                  string endpointSingular, string endpointPlural,
                                  int objectTypeId, string primarySearchKey) :
     base(apiRequest, endpointSingular, endpointPlural, primarySearchKey)
 {
     _ontraObjects = ontraObjects;
     _objectTypeId = objectTypeId;
 }
 public OntraportCustomObjects(OntraportHttpClient apiRequest) :
     base(apiRequest, "CustomObject", "CustomObjects")
 {
 }
示例#3
0
 public OntraportCompanies(OntraportHttpClient apiRequest, IOntraportObjects ontraObjects) :
     base(apiRequest, ontraObjects, "Company", "Companies", (int)ApiObjectType.Company, ApiCompany.NameKey)
 {
 }
 public OntraportBaseWrite(OntraportHttpClient apiRequest, string endpointSingular, string endpointPlural, string primarySearchKey) :
     base(apiRequest, endpointSingular, endpointPlural)
 {
     PrimarySearchKey = primarySearchKey;
 }
示例#5
0
 public OntraportOffers(OntraportHttpClient apiRequest) :
     base(apiRequest, "Offer", "Offers", ApiOffer.NameKey)
 {
 }
 public OntraportMessages(OntraportHttpClient apiRequest) :
     base(apiRequest, "Message", "Messages", ApiMessage.AliasKey)
 {
 }
 public OntraportBaseDelete(OntraportHttpClient apiRequest, string endpointSingular, string endpointPlural, string primarySearchKey) :
     base(apiRequest, endpointSingular, endpointPlural, primarySearchKey)
 {
 }
 public OntraportCreditCards(OntraportHttpClient apiRequest) :
     base(apiRequest, "CreditCard", "CreditCards")
 {
 }
 public OntraportCoupons(OntraportHttpClient apiRequest) :
     base(apiRequest, "Coupon", "Coupons", ApiCoupon.NameKey)
 {
 }
 public OntraportContacts(OntraportHttpClient apiRequest, IOntraportObjects ontraObjects) :
     base(apiRequest, ontraObjects, "Contact", "Contacts", (int)ApiObjectType.Contact, ApiContact.EmailKey)
 {
 }
 public OntraportProducts(OntraportHttpClient apiRequest) :
     base(apiRequest, "Product", "Products", ApiProduct.NameKey)
 {
 }
 public OntraportTransactions(OntraportHttpClient apiRequest) :
     base(apiRequest, "Transaction", "Transactions")
 {
 }
 public OntraportBaseRead(OntraportHttpClient apiRequest, string endpointSingular, string endpointPlural)
 {
     ApiRequest       = apiRequest;
     EndpointSingular = endpointSingular;
     EndpointPlural   = endpointPlural;
 }
 public OntraportLandingPages(OntraportHttpClient apiRequest) :
     base(apiRequest, "LandingPage", "LandingPages")
 {
 }
示例#15
0
 public OntraportCouponCodes(OntraportHttpClient apiRequest) :
     base(apiRequest, "CouponCode", "CouponCodes")
 {
 }
示例#16
0
 public OntraportDeals(OntraportHttpClient apiRequest, IOntraportObjects ontraObjects) :
     base(apiRequest, ontraObjects, "Deal", "Deals", (int)ApiObjectType.Deal, ApiDeal.NameKey)
 {
 }
示例#17
0
 public OntraportRules(OntraportHttpClient apiRequest) :
     base(apiRequest, "Rule", "Rules", ApiRule.NameKey)
 {
 }
示例#18
0
 public OntraportForms(OntraportHttpClient apiRequest) :
     base(apiRequest, "Form", "Forms")
 {
 }
 public OntraportCampaignBuilderItems(OntraportHttpClient apiRequest) :
     base(apiRequest, "CampaignBuilderItem", "CampaignBuilderItems")
 {
 }
示例#20
0
 public OntraportObjects(OntraportHttpClient apiRequest)
 {
     _apiRequest = apiRequest;
 }
 public OntraportCouponProducts(OntraportHttpClient apiRequest) :
     base(apiRequest, "CouponProduct", "CouponProducts")
 {
 }
示例#22
0
 public OntraportTasks(OntraportHttpClient apiRequest) : 
     base(apiRequest, "Task", "Tasks")
 { }
示例#23
0
 public OntraportWebhooks(OntraportHttpClient apiRequest) :
     base(apiRequest, "Webhook", "Webhooks")
 {
 }