Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #54 from Thembadev/fix/update_samples_to_require_m…
Browse files Browse the repository at this point in the history
…arketingcloudsdk

Updated sample code to require MarketingCloudSDK instead of FUELSDK
  • Loading branch information
amagar088 authored Oct 26, 2016
2 parents 428253d + b1c611c commit c68c15d
Show file tree
Hide file tree
Showing 27 changed files with 404 additions and 409 deletions.
2 changes: 1 addition & 1 deletion samples/sample-AddSubscriberToList.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-CreateAndStartDataExtensionImport.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

DataExtensionCustomerKey = "62476204-bfd3-de11-95ca-001e0bbae8cc"
CSVFileName = "SDKExample.csv"
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-CreateAndStartListImport.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth
ListID = "1956035"
CSVFileName = "SDKExample.csv"

Expand Down
4 changes: 2 additions & 2 deletions samples/sample-CreateContentAreas.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

## Example using CreateContentAreas() method

Expand Down
2 changes: 1 addition & 1 deletion samples/sample-CreateDataExtensions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-CreateProfileAttributes.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

## Example using CreateProfileAttributes() method

Expand Down
4 changes: 2 additions & 2 deletions samples/sample-SendEmailToDataExtension.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

EmailIDForSendDefinition = "3113962"
SendClassificationCustomerKey = "2239"
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-SendEmailToList.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

EmailIDForSendDefinition = "3113962"
ListIDForSendDefinition = "1729515"
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-SendTriggeredSends.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
myclient = FuelSDK::Client.new auth
myclient = MarketingCloudSDK::Client.new auth

TriggeredSendCustomerKey = "TEXTEXT"
AltTriggeredSendCustomerKey = "FailTest"
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-bounceevent.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'fuelsdk'
require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
stubObj = FuelSDK::Client.new auth
stubObj = MarketingCloudSDK::Client.new auth

## Modify the date below to reduce the number of results returned from the request
## Setting this too far in the past could result in a very large response size
Expand Down
Loading

0 comments on commit c68c15d

Please sign in to comment.