diff --git a/Interact_API_Guide.pdf b/Interact_API_Guide.pdf new file mode 100644 index 0000000..33fb59d Binary files /dev/null and b/Interact_API_Guide.pdf differ diff --git a/app/controllers/api/v1/list_controller.rb b/app/controllers/api/v1/list_controller.rb new file mode 100644 index 0000000..2286104 --- /dev/null +++ b/app/controllers/api/v1/list_controller.rb @@ -0,0 +1,36 @@ +require 'responsys_api' +module Api + module V1 + class ListController < ApplicationController + before_action :validate_params, only: [:create] + + def create + list = Responsys::Api::Object::InteractObject.new(params[:folder], params[:list]) + record_data = Responsys::Api::Object::RecordData.new(params[:record_data]) + if params[:record_data].size > 150 + render(status: :bad_request, json: { 'error_message': 'Maximum of 150 records exceeded.' }) + else + response = Responsys::Api::Client.new.merge_list_members(list, record_data, Responsys::Api::Object::ListMergeRule.new(insertOnNoMatch: true)) + + if response[:status] == 'ok' + render json: json(response[:data][0][:result]) + else + render json: json(response) + end + end + end + + private + + def validate_params + # rubocop:disable Lint/NonLocalExitFromIterator + required_params.each { |param| validate_param_exists(param) && return } + # rubocop:enable Lint/NonLocalExitFromIterator + end + + def required_params + [:list, :folder, :record_data] + end + end + end +end diff --git a/app/controllers/api/v1/trigger_campaign_message_controller.rb b/app/controllers/api/v1/trigger_campaign_message_controller.rb new file mode 100644 index 0000000..af35e1a --- /dev/null +++ b/app/controllers/api/v1/trigger_campaign_message_controller.rb @@ -0,0 +1,52 @@ +require 'responsys_api' +module Api + module V1 + class TriggerCampaignMessageController < ApplicationController + before_action :validate_params, only: [:create] + + def create + list = Responsys::Api::Object::InteractObject.new(params[:folder], params[:list]) + campaign = Responsys::Api::Object::InteractObject.new(params[:folder], params[:campaign]) + + recipients = [] + + if params[:recipients].size > 150 + logger.error "recipients size = #{params[:recipients].size}" + render(status: :bad_request, json: json(error_message: 'Maximum of 150 recipients')) + return + end + + params[:recipients].each do |r| + recipient_data = Responsys::Api::Object::RecipientData.new(Responsys::Api::Object::Recipient.new(emailAddress: r[:email], listName: list)) + r[:optional_data].each do |k, v| + recipient_data.optional_data << Responsys::Api::Object::OptionalData.new(k, v) + end if r[:optional_data] + recipients << recipient_data + end + + response = Responsys::Api::Client.new.trigger_message(campaign, recipients) + if (response[:status] == 'ok') + if response[:result] + render(json: json(response[:result])) + else + render(json: json(response[:data].map { |entry| entry[:result] })) + end + else + render(status: 500, json: json(error_code: response[:error][:code], error_message: response[:error][:message])) + end + end + + private + + def validate_params + # rubocop:disable Lint/NonLocalExitFromIterator + required_params.each { |param| validate_param_exists(param) && return } + # rubocop:enable Lint/NonLocalExitFromIterator + end + + def required_params + [:list, :folder, :campaign, :recipients] + end + end + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6d6a3ec..f42442e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,7 +4,12 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :null_session rescue_from Exception do |exception| - json_request? ? render_error_json(exception.message) : fail(exception) + if json_request? + render_error_json(exception.message) + logger.error(exception) + else + fail(exception) + end end def json(data) @@ -12,10 +17,11 @@ def json(data) end def validate_param_exists(param) - render_error_json("Missing #{param} parameter") unless params.key?(param) + render_error_json("Missing '#{param}' parameter") unless params[param] end def render_error_json(message) + logger.error(message) render(status: :bad_request, json: json_error(message)) end @@ -26,11 +32,9 @@ def json_request? end def json_error(message) - result = { 'status' => 'failure', - 'error' => { - 'message' => message - } - } + result = { + 'error_message' => message + } json result end end diff --git a/app/services/service_status.rb b/app/services/service_status.rb index ad84753..8d2b13e 100644 --- a/app/services/service_status.rb +++ b/app/services/service_status.rb @@ -5,7 +5,7 @@ require 'sys/filesystem' class ServiceStatus - attr_reader :name, :version, :hostname, :errors, :checks, :timestamp, :status + attr_reader :name, :version, :hostname, :errors, :checks, :timestamp def initialize(name, version, boot_time) @boot_time = boot_time @@ -17,6 +17,11 @@ def initialize(name, version, boot_time) @errors = [] end + def add_check(name, ok) + @checks << name + @errors << name unless ok + end + def add_http_get_check(name, url) @checks << name uri = URI(url) diff --git a/app/views/help/index.html.erb b/app/views/help/index.html.erb index 7898d48..e3ba067 100644 --- a/app/views/help/index.html.erb +++ b/app/views/help/index.html.erb @@ -347,4 +347,119 @@ Transfer-Encoding: chunked + +

TriggerCampaignMessage

+ +

Trigger Campaign Message (send transactional email)

+

URL Structure

+
+POST <%= api_v1_trigger_campaign_message_url %>
+
+ + +

Example

+ +
+
+curl -X POST -i -L -H "Content-Type: application/json" <%= api_v1_trigger_campaign_message_url %>\?pretty\=true -d '
+{
+	"list" : "Empty_Stock_Alerts_List",
+	"folder" : "TBP_Prog_Stock_Alert",
+	"campaign": "Stock_Alerts_Campaign",
+	"recipients": [
+		{
+			"email": "luke.farrar@thebookpeople.co.uk",
+			"optional_data" : {
+				"PRODUCT_TITLE": "title",
+				"AUTHOR": "author",
+				"PRICE": "123.45",
+				"FIRST_NAME": "Bob",
+				"PRODUCT_PAGE_URL": "moo.com",
+				"SAVING": "99.99",
+				"PRODUCT_IMAGE_URL": "moo.com/logo.png"
+			}
+		}
+	]
+}
+'
+
+
+HTTP/1.1 200 OK
+X-Frame-Options: SAMEORIGIN
+X-XSS-Protection: 1; mode=block
+X-Content-Type-Options: nosniff
+X-TBP-Version: 0.1.1
+Content-Type: application/json; charset=utf-8
+ETag: W/"814c7637376a5f718c89c49046b5e5f8"
+Cache-Control: max-age=0, private, must-revalidate
+X-Request-Id: f22766ca-39de-4bc6-9668-58fea65f3778
+X-Runtime: 3.172549
+Transfer-Encoding: chunked
+
+
+
+[
+	{
+		"recipient_id": "452639455",
+		"success": true,
+		"error_message": null
+	}
+]
+
+
+ +

MergeListMembers

+ +

Merge List Members (add addresses to a list)

+

URL Structure

+
+POST <%= api_v1_merge_list_members_url %>
+
+ +

Example

+ +
+
+curl -XPOST -i -L -H "Content-Type: application/json" <%= api_v1_merge_list_members_url %>\?pretty\=true -d '
+{
+	"list" : "Empty_Stock_Alerts_List",
+	"folder" : "TBP_Prog_Stock_Alert",
+	"record_data": [
+		{
+			"EMAIL_ADDRESS_": "test@thebookpeople.co.uk",
+			"CUSTOMER_ID_": "9876543"
+		},
+		{
+			"EMAIL_ADDRESS_": "test2@thebookpeople.co.uk",
+			"CUSTOMER_ID_": "123456789"
+		}		
+	]
+}
+'
+
+
+HTTP/1.1 200 OK
+X-Frame-Options: SAMEORIGIN
+X-XSS-Protection: 1; mode=block
+X-Content-Type-Options: nosniff
+X-TBP-Version: 0.2.0
+Content-Type: application/json; charset=utf-8
+ETag: W/"8a76c27403cd87beb90698c4841a4e1a"
+Cache-Control: max-age=0, private, must-revalidate
+X-Request-Id: 7dbd404a-85a3-489a-9ea3-d8d14fb04878
+X-Runtime: 2.163590
+Transfer-Encoding: chunked
+
+
+{
+	"insert_count": "0",
+	"update_count": "2",
+	"rejected_count": "0",
+	"total_count": "2",
+	"error_message": null
+}
+
+
+ + diff --git a/config/application.rb b/config/application.rb index 4bef57c..39e24ff 100644 --- a/config/application.rb +++ b/config/application.rb @@ -29,7 +29,7 @@ class Application < Rails::Application # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # - config.app_version = '0.1.1' + config.app_version = '0.2.0' config.boot_time = Time.now config.action_dispatch.default_headers.merge!('X-TBP-Version' => config.app_version) diff --git a/config/routes.rb b/config/routes.rb index bb0089e..1a37a92 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,8 @@ namespace :v1 do post '/search' => 'search#create' post '/profile_extensions' => 'profile_extension#create' + post '/trigger_campaign_message' => 'trigger_campaign_message#create' + post '/merge_list_members' => 'list#create' get '/status' => 'status#index' end end diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/handles_non-ok_status.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/handles_non-ok_status.yml new file mode 100644 index 0000000..9109180 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/handles_non-ok_status.yml @@ -0,0 +1,978 @@ +--- +http_interactions: +- request: + method: get + uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl + body: + encoding: US-ASCII + string: '' + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: "\n\n This + WSDL contains the APIs needed for customers to integrate their applications + with Responsys Interact.\n \n \n + \ \n + \ \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n\n \n + \ \n \n\n + \ \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n\n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n + \ \n \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Auhenticate the server.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API using Certificate.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n Logout + of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys + account.\n \n \n \n \n \n \n Send Triggered + Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event + to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Schedule a Campaign Launch.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Gets the launch info given a launch Id.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients + from a list.\n \n \n \n \n \n \n \n Deletes + recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing table.\n \n \n \n \n \n \n \n Merge data into a + table.\n \n \n \n \n \n \n \n Retrieves records + from table.\n \n \n \n \n \n \n \n Deletes records from + a table.\n \n \n \n \n \n \n \n Truncate data in existing + table.\n \n \n \n \n \n \n \n Creates a document.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Deletes a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set images to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get images from a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set content to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get content of a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list returning the recipient + ids.\n \n \n \n \n \n \n \n Merge data + into a list extension returning the recipient ids.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Creates an empty table with primary keys.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Merge + data into a table using primary keys.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + records from a list extension.\n \n \n \n \n \n \n \n \n + \ List folders in the Content Library.\n + \ \n + \ \n + \ \n \n \n + \ \n \n\t\t\tCheck + if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder + in the Content Library.\n \n \n \n \n \n \n \n Create folder + in the Content Library.\n \n \n \n \n \n \n \n Create asset + in the Content Library.\n \n \n \n \n \n\n \n Update asset in + the Content Library.\n \n \n \n \n \n \n \n Delete asset + in the Content Library.\n \n \n \n \n \n \n \n Get asset in the + Content Library.\n \n \n \n \n \n \n + \ \n Merge + And Send Triggered Message for 1 or more recipients.\n \n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n \n \n + \ \t \n \n + \ \n \t \n \n + \ \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n\n + \ \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n\t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n + \ Responsys Web Services API\n \n \n + \ \n \n\n" + http_version: + recorded_at: Thu, 28 May 2015 10:53:51 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:52 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:53:53 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:54 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/returns_200.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_200.yml new file mode 100644 index 0000000..1893fb4 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_200.yml @@ -0,0 +1,978 @@ +--- +http_interactions: +- request: + method: get + uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl + body: + encoding: US-ASCII + string: '' + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: "\n\n This + WSDL contains the APIs needed for customers to integrate their applications + with Responsys Interact.\n \n \n + \ \n + \ \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n\n \n + \ \n \n\n + \ \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n\n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n + \ \n \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Auhenticate the server.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API using Certificate.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n Logout + of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys + account.\n \n \n \n \n \n \n Send Triggered + Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event + to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Schedule a Campaign Launch.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Gets the launch info given a launch Id.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients + from a list.\n \n \n \n \n \n \n \n Deletes + recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing table.\n \n \n \n \n \n \n \n Merge data into a + table.\n \n \n \n \n \n \n \n Retrieves records + from table.\n \n \n \n \n \n \n \n Deletes records from + a table.\n \n \n \n \n \n \n \n Truncate data in existing + table.\n \n \n \n \n \n \n \n Creates a document.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Deletes a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set images to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get images from a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set content to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get content of a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list returning the recipient + ids.\n \n \n \n \n \n \n \n Merge data + into a list extension returning the recipient ids.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Creates an empty table with primary keys.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Merge + data into a table using primary keys.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + records from a list extension.\n \n \n \n \n \n \n \n \n + \ List folders in the Content Library.\n + \ \n + \ \n + \ \n \n \n + \ \n \n\t\t\tCheck + if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder + in the Content Library.\n \n \n \n \n \n \n \n Create folder + in the Content Library.\n \n \n \n \n \n \n \n Create asset + in the Content Library.\n \n \n \n \n \n\n \n Update asset in + the Content Library.\n \n \n \n \n \n \n \n Delete asset + in the Content Library.\n \n \n \n \n \n \n \n Get asset in the + Content Library.\n \n \n \n \n \n \n + \ \n Merge + And Send Triggered Message for 1 or more recipients.\n \n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n \n \n + \ \t \n \n + \ \n \t \n \n + \ \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n\n + \ \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n\t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n + \ Responsys Web Services API\n \n \n + \ \n \n\n" + http_version: + recorded_at: Thu, 28 May 2015 10:53:01 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:01 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:53:02 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:03 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/returns_error_message_of_nil.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_error_message_of_nil.yml new file mode 100644 index 0000000..22c14db --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_error_message_of_nil.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:05 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:53:06 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:07 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/returns_rejected_count_of_0.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_rejected_count_of_0.yml new file mode 100644 index 0000000..8602469 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_rejected_count_of_0.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:07 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:53:08 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:09 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/returns_total_count_of_2.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_total_count_of_2.yml new file mode 100644 index 0000000..6f75c02 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/returns_total_count_of_2.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:03 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:53:04 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:05 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/adding_to_list/with_150_recipients/returns_200.yml b/spec/cassettes/Api_V1_ListController/adding_to_list/with_150_recipients/returns_200.yml new file mode 100644 index 0000000..a82c529 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/adding_to_list/with_150_recipients/returns_200.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:53:13 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33foo-2@test.thebookpeople.comCUST_ID_FOO-2foo-3@test.thebookpeople.comCUST_ID_FOO-3foo-4@test.thebookpeople.comCUST_ID_FOO-4foo-5@test.thebookpeople.comCUST_ID_FOO-5foo-6@test.thebookpeople.comCUST_ID_FOO-6foo-7@test.thebookpeople.comCUST_ID_FOO-7foo-8@test.thebookpeople.comCUST_ID_FOO-8foo-9@test.thebookpeople.comCUST_ID_FOO-9foo-10@test.thebookpeople.comCUST_ID_FOO-10foo-11@test.thebookpeople.comCUST_ID_FOO-11foo-12@test.thebookpeople.comCUST_ID_FOO-12foo-13@test.thebookpeople.comCUST_ID_FOO-13foo-14@test.thebookpeople.comCUST_ID_FOO-14foo-15@test.thebookpeople.comCUST_ID_FOO-15foo-16@test.thebookpeople.comCUST_ID_FOO-16foo-17@test.thebookpeople.comCUST_ID_FOO-17foo-18@test.thebookpeople.comCUST_ID_FOO-18foo-19@test.thebookpeople.comCUST_ID_FOO-19foo-20@test.thebookpeople.comCUST_ID_FOO-20foo-21@test.thebookpeople.comCUST_ID_FOO-21foo-22@test.thebookpeople.comCUST_ID_FOO-22foo-23@test.thebookpeople.comCUST_ID_FOO-23foo-24@test.thebookpeople.comCUST_ID_FOO-24foo-25@test.thebookpeople.comCUST_ID_FOO-25foo-26@test.thebookpeople.comCUST_ID_FOO-26foo-27@test.thebookpeople.comCUST_ID_FOO-27foo-28@test.thebookpeople.comCUST_ID_FOO-28foo-29@test.thebookpeople.comCUST_ID_FOO-29foo-30@test.thebookpeople.comCUST_ID_FOO-30foo-31@test.thebookpeople.comCUST_ID_FOO-31foo-32@test.thebookpeople.comCUST_ID_FOO-32foo-33@test.thebookpeople.comCUST_ID_FOO-33foo-34@test.thebookpeople.comCUST_ID_FOO-34foo-35@test.thebookpeople.comCUST_ID_FOO-35foo-36@test.thebookpeople.comCUST_ID_FOO-36foo-37@test.thebookpeople.comCUST_ID_FOO-37foo-38@test.thebookpeople.comCUST_ID_FOO-38foo-39@test.thebookpeople.comCUST_ID_FOO-39foo-40@test.thebookpeople.comCUST_ID_FOO-40foo-41@test.thebookpeople.comCUST_ID_FOO-41foo-42@test.thebookpeople.comCUST_ID_FOO-42foo-43@test.thebookpeople.comCUST_ID_FOO-43foo-44@test.thebookpeople.comCUST_ID_FOO-44foo-45@test.thebookpeople.comCUST_ID_FOO-45foo-46@test.thebookpeople.comCUST_ID_FOO-46foo-47@test.thebookpeople.comCUST_ID_FOO-47foo-48@test.thebookpeople.comCUST_ID_FOO-48foo-49@test.thebookpeople.comCUST_ID_FOO-49foo-50@test.thebookpeople.comCUST_ID_FOO-50foo-51@test.thebookpeople.comCUST_ID_FOO-51foo-52@test.thebookpeople.comCUST_ID_FOO-52foo-53@test.thebookpeople.comCUST_ID_FOO-53foo-54@test.thebookpeople.comCUST_ID_FOO-54foo-55@test.thebookpeople.comCUST_ID_FOO-55foo-56@test.thebookpeople.comCUST_ID_FOO-56foo-57@test.thebookpeople.comCUST_ID_FOO-57foo-58@test.thebookpeople.comCUST_ID_FOO-58foo-59@test.thebookpeople.comCUST_ID_FOO-59foo-60@test.thebookpeople.comCUST_ID_FOO-60foo-61@test.thebookpeople.comCUST_ID_FOO-61foo-62@test.thebookpeople.comCUST_ID_FOO-62foo-63@test.thebookpeople.comCUST_ID_FOO-63foo-64@test.thebookpeople.comCUST_ID_FOO-64foo-65@test.thebookpeople.comCUST_ID_FOO-65foo-66@test.thebookpeople.comCUST_ID_FOO-66foo-67@test.thebookpeople.comCUST_ID_FOO-67foo-68@test.thebookpeople.comCUST_ID_FOO-68foo-69@test.thebookpeople.comCUST_ID_FOO-69foo-70@test.thebookpeople.comCUST_ID_FOO-70foo-71@test.thebookpeople.comCUST_ID_FOO-71foo-72@test.thebookpeople.comCUST_ID_FOO-72foo-73@test.thebookpeople.comCUST_ID_FOO-73foo-74@test.thebookpeople.comCUST_ID_FOO-74foo-75@test.thebookpeople.comCUST_ID_FOO-75foo-76@test.thebookpeople.comCUST_ID_FOO-76foo-77@test.thebookpeople.comCUST_ID_FOO-77foo-78@test.thebookpeople.comCUST_ID_FOO-78foo-79@test.thebookpeople.comCUST_ID_FOO-79foo-80@test.thebookpeople.comCUST_ID_FOO-80foo-81@test.thebookpeople.comCUST_ID_FOO-81foo-82@test.thebookpeople.comCUST_ID_FOO-82foo-83@test.thebookpeople.comCUST_ID_FOO-83foo-84@test.thebookpeople.comCUST_ID_FOO-84foo-85@test.thebookpeople.comCUST_ID_FOO-85foo-86@test.thebookpeople.comCUST_ID_FOO-86foo-87@test.thebookpeople.comCUST_ID_FOO-87foo-88@test.thebookpeople.comCUST_ID_FOO-88foo-89@test.thebookpeople.comCUST_ID_FOO-89foo-90@test.thebookpeople.comCUST_ID_FOO-90foo-91@test.thebookpeople.comCUST_ID_FOO-91foo-92@test.thebookpeople.comCUST_ID_FOO-92foo-93@test.thebookpeople.comCUST_ID_FOO-93foo-94@test.thebookpeople.comCUST_ID_FOO-94foo-95@test.thebookpeople.comCUST_ID_FOO-95foo-96@test.thebookpeople.comCUST_ID_FOO-96foo-97@test.thebookpeople.comCUST_ID_FOO-97foo-98@test.thebookpeople.comCUST_ID_FOO-98foo-99@test.thebookpeople.comCUST_ID_FOO-99foo-100@test.thebookpeople.comCUST_ID_FOO-100foo-101@test.thebookpeople.comCUST_ID_FOO-101foo-102@test.thebookpeople.comCUST_ID_FOO-102foo-103@test.thebookpeople.comCUST_ID_FOO-103foo-104@test.thebookpeople.comCUST_ID_FOO-104foo-105@test.thebookpeople.comCUST_ID_FOO-105foo-106@test.thebookpeople.comCUST_ID_FOO-106foo-107@test.thebookpeople.comCUST_ID_FOO-107foo-108@test.thebookpeople.comCUST_ID_FOO-108foo-109@test.thebookpeople.comCUST_ID_FOO-109foo-110@test.thebookpeople.comCUST_ID_FOO-110foo-111@test.thebookpeople.comCUST_ID_FOO-111foo-112@test.thebookpeople.comCUST_ID_FOO-112foo-113@test.thebookpeople.comCUST_ID_FOO-113foo-114@test.thebookpeople.comCUST_ID_FOO-114foo-115@test.thebookpeople.comCUST_ID_FOO-115foo-116@test.thebookpeople.comCUST_ID_FOO-116foo-117@test.thebookpeople.comCUST_ID_FOO-117foo-118@test.thebookpeople.comCUST_ID_FOO-118foo-119@test.thebookpeople.comCUST_ID_FOO-119foo-120@test.thebookpeople.comCUST_ID_FOO-120foo-121@test.thebookpeople.comCUST_ID_FOO-121foo-122@test.thebookpeople.comCUST_ID_FOO-122foo-123@test.thebookpeople.comCUST_ID_FOO-123foo-124@test.thebookpeople.comCUST_ID_FOO-124foo-125@test.thebookpeople.comCUST_ID_FOO-125foo-126@test.thebookpeople.comCUST_ID_FOO-126foo-127@test.thebookpeople.comCUST_ID_FOO-127foo-128@test.thebookpeople.comCUST_ID_FOO-128foo-129@test.thebookpeople.comCUST_ID_FOO-129foo-130@test.thebookpeople.comCUST_ID_FOO-130foo-131@test.thebookpeople.comCUST_ID_FOO-131foo-132@test.thebookpeople.comCUST_ID_FOO-132foo-133@test.thebookpeople.comCUST_ID_FOO-133foo-134@test.thebookpeople.comCUST_ID_FOO-134foo-135@test.thebookpeople.comCUST_ID_FOO-135foo-136@test.thebookpeople.comCUST_ID_FOO-136foo-137@test.thebookpeople.comCUST_ID_FOO-137foo-138@test.thebookpeople.comCUST_ID_FOO-138foo-139@test.thebookpeople.comCUST_ID_FOO-139foo-140@test.thebookpeople.comCUST_ID_FOO-140foo-141@test.thebookpeople.comCUST_ID_FOO-141foo-142@test.thebookpeople.comCUST_ID_FOO-142foo-143@test.thebookpeople.comCUST_ID_FOO-143foo-144@test.thebookpeople.comCUST_ID_FOO-144foo-145@test.thebookpeople.comCUST_ID_FOO-145foo-146@test.thebookpeople.comCUST_ID_FOO-146foo-147@test.thebookpeople.comCUST_ID_FOO-147foo-148@test.thebookpeople.comCUST_ID_FOO-148foo-149@test.thebookpeople.comCUST_ID_FOO-149trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 01500150 + http_version: + recorded_at: Thu, 28 May 2015 10:53:14 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:53:15 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/list/returns_200.yml b/spec/cassettes/Api_V1_ListController/list/returns_200.yml new file mode 100644 index 0000000..77d7707 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/list/returns_200.yml @@ -0,0 +1,978 @@ +--- +http_interactions: +- request: + method: get + uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl + body: + encoding: US-ASCII + string: '' + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: "\n\n This + WSDL contains the APIs needed for customers to integrate their applications + with Responsys Interact.\n \n \n + \ \n + \ \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n\n \n + \ \n \n\n + \ \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n + \ \n\n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n\t\n + \ \n + \ \n \n \n + \ \n + \ \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n + \ \n \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Auhenticate the server.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Login to the Responsys Web Services API using Certificate.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n Logout + of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys + account.\n \n \n \n \n \n \n Send Triggered + Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered + Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event + to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Schedule a Campaign Launch.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Gets the launch info given a launch Id.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients + from a list.\n \n \n \n \n \n \n \n Deletes + recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Deletes + an existing table.\n \n \n \n \n \n \n \n Merge data into a + table.\n \n \n \n \n \n \n \n Retrieves records + from table.\n \n \n \n \n \n \n \n Deletes records from + a table.\n \n \n \n \n \n \n \n Truncate data in existing + table.\n \n \n \n \n \n \n \n Creates a document.\n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Deletes a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set images to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get images from a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Set content to a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Get content of a document.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Merge data into a list returning the recipient + ids.\n \n \n \n \n \n \n \n Merge data + into a list extension returning the recipient ids.\n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ Creates an empty table with primary keys.\n + \ \n + \ \n + \ \n \n \n + \ \n \n Merge + data into a table using primary keys.\n \n + \ \n + \ \n \n \n + \ \n \n Retrieves + records from a list extension.\n \n \n \n \n \n \n \n \n + \ List folders in the Content Library.\n + \ \n + \ \n + \ \n \n \n + \ \n \n\t\t\tCheck + if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder + in the Content Library.\n \n \n \n \n \n \n \n Create folder + in the Content Library.\n \n \n \n \n \n \n \n Create asset + in the Content Library.\n \n \n \n \n \n\n \n Update asset in + the Content Library.\n \n \n \n \n \n \n \n Delete asset + in the Content Library.\n \n \n \n \n \n \n \n Get asset in the + Content Library.\n \n \n \n \n \n \n + \ \n Merge + And Send Triggered Message for 1 or more recipients.\n \n + \ \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n \n + \ \n \n \n + \ \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n + \ \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n + \n \n \n + \ + \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n + \ + \n \n \n \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n \n \n + \ \t \n \n + \ \n \t \n \n + \ \n \n \n + \ \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n\n + \ \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n \n + \ \n \n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \n \n \t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n\t\t\n \n \n + \ \t\n + \ \n \n \n \t\n + \ \n \n \t \n \n \n \t \n \n + \ \n \n \n \n \n + \ \n + \ \n \n \n \n + \ \n \n + \ + \n \n \n + \ + \n \n \n + \ + \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n + \ \n \n \n \n + \ \n \n + \ \n \n \n \n + \ Responsys Web Services API\n \n \n + \ \n \n\n" + http_version: + recorded_at: Thu, 28 May 2015 10:17:07 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:17:07 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:17:08 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:17:09 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/list/returns_error_message_of_nil.yml b/spec/cassettes/Api_V1_ListController/list/returns_error_message_of_nil.yml new file mode 100644 index 0000000..23f2992 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/list/returns_error_message_of_nil.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:17:12 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:17:12 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:17:13 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/list/returns_rejected_count_of_0.yml b/spec/cassettes/Api_V1_ListController/list/returns_rejected_count_of_0.yml new file mode 100644 index 0000000..e4f1948 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/list/returns_rejected_count_of_0.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:17:14 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:17:14 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:17:15 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/list/returns_total_count_of_2.yml b/spec/cassettes/Api_V1_ListController/list/returns_total_count_of_2.yml new file mode 100644 index 0000000..f64e733 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/list/returns_total_count_of_2.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:17:10 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 0202 + http_version: + recorded_at: Thu, 28 May 2015 10:17:10 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:17:11 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ListController/list/with_150_recipients/returns_200.yml b/spec/cassettes/Api_V1_ListController/list/with_150_recipients/returns_200.yml new file mode 100644 index 0000000..4567ce6 --- /dev/null +++ b/spec/cassettes/Api_V1_ListController/list/with_150_recipients/returns_200.yml @@ -0,0 +1,64 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:17:16 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_Stock_Alerts_Test_ListEMAIL_ADDRESS_CUSTOMER_ID_luke.farrar@thebookpeople.co.ukCUST_ID_99lukepfarrar@gmail.comCUST_ID_33foo-2@test.thebookpeople.comCUST_ID_FOO-2foo-3@test.thebookpeople.comCUST_ID_FOO-3foo-4@test.thebookpeople.comCUST_ID_FOO-4foo-5@test.thebookpeople.comCUST_ID_FOO-5foo-6@test.thebookpeople.comCUST_ID_FOO-6foo-7@test.thebookpeople.comCUST_ID_FOO-7foo-8@test.thebookpeople.comCUST_ID_FOO-8foo-9@test.thebookpeople.comCUST_ID_FOO-9foo-10@test.thebookpeople.comCUST_ID_FOO-10foo-11@test.thebookpeople.comCUST_ID_FOO-11foo-12@test.thebookpeople.comCUST_ID_FOO-12foo-13@test.thebookpeople.comCUST_ID_FOO-13foo-14@test.thebookpeople.comCUST_ID_FOO-14foo-15@test.thebookpeople.comCUST_ID_FOO-15foo-16@test.thebookpeople.comCUST_ID_FOO-16foo-17@test.thebookpeople.comCUST_ID_FOO-17foo-18@test.thebookpeople.comCUST_ID_FOO-18foo-19@test.thebookpeople.comCUST_ID_FOO-19foo-20@test.thebookpeople.comCUST_ID_FOO-20foo-21@test.thebookpeople.comCUST_ID_FOO-21foo-22@test.thebookpeople.comCUST_ID_FOO-22foo-23@test.thebookpeople.comCUST_ID_FOO-23foo-24@test.thebookpeople.comCUST_ID_FOO-24foo-25@test.thebookpeople.comCUST_ID_FOO-25foo-26@test.thebookpeople.comCUST_ID_FOO-26foo-27@test.thebookpeople.comCUST_ID_FOO-27foo-28@test.thebookpeople.comCUST_ID_FOO-28foo-29@test.thebookpeople.comCUST_ID_FOO-29foo-30@test.thebookpeople.comCUST_ID_FOO-30foo-31@test.thebookpeople.comCUST_ID_FOO-31foo-32@test.thebookpeople.comCUST_ID_FOO-32foo-33@test.thebookpeople.comCUST_ID_FOO-33foo-34@test.thebookpeople.comCUST_ID_FOO-34foo-35@test.thebookpeople.comCUST_ID_FOO-35foo-36@test.thebookpeople.comCUST_ID_FOO-36foo-37@test.thebookpeople.comCUST_ID_FOO-37foo-38@test.thebookpeople.comCUST_ID_FOO-38foo-39@test.thebookpeople.comCUST_ID_FOO-39foo-40@test.thebookpeople.comCUST_ID_FOO-40foo-41@test.thebookpeople.comCUST_ID_FOO-41foo-42@test.thebookpeople.comCUST_ID_FOO-42foo-43@test.thebookpeople.comCUST_ID_FOO-43foo-44@test.thebookpeople.comCUST_ID_FOO-44foo-45@test.thebookpeople.comCUST_ID_FOO-45foo-46@test.thebookpeople.comCUST_ID_FOO-46foo-47@test.thebookpeople.comCUST_ID_FOO-47foo-48@test.thebookpeople.comCUST_ID_FOO-48foo-49@test.thebookpeople.comCUST_ID_FOO-49foo-50@test.thebookpeople.comCUST_ID_FOO-50foo-51@test.thebookpeople.comCUST_ID_FOO-51foo-52@test.thebookpeople.comCUST_ID_FOO-52foo-53@test.thebookpeople.comCUST_ID_FOO-53foo-54@test.thebookpeople.comCUST_ID_FOO-54foo-55@test.thebookpeople.comCUST_ID_FOO-55foo-56@test.thebookpeople.comCUST_ID_FOO-56foo-57@test.thebookpeople.comCUST_ID_FOO-57foo-58@test.thebookpeople.comCUST_ID_FOO-58foo-59@test.thebookpeople.comCUST_ID_FOO-59foo-60@test.thebookpeople.comCUST_ID_FOO-60foo-61@test.thebookpeople.comCUST_ID_FOO-61foo-62@test.thebookpeople.comCUST_ID_FOO-62foo-63@test.thebookpeople.comCUST_ID_FOO-63foo-64@test.thebookpeople.comCUST_ID_FOO-64foo-65@test.thebookpeople.comCUST_ID_FOO-65foo-66@test.thebookpeople.comCUST_ID_FOO-66foo-67@test.thebookpeople.comCUST_ID_FOO-67foo-68@test.thebookpeople.comCUST_ID_FOO-68foo-69@test.thebookpeople.comCUST_ID_FOO-69foo-70@test.thebookpeople.comCUST_ID_FOO-70foo-71@test.thebookpeople.comCUST_ID_FOO-71foo-72@test.thebookpeople.comCUST_ID_FOO-72foo-73@test.thebookpeople.comCUST_ID_FOO-73foo-74@test.thebookpeople.comCUST_ID_FOO-74foo-75@test.thebookpeople.comCUST_ID_FOO-75foo-76@test.thebookpeople.comCUST_ID_FOO-76foo-77@test.thebookpeople.comCUST_ID_FOO-77foo-78@test.thebookpeople.comCUST_ID_FOO-78foo-79@test.thebookpeople.comCUST_ID_FOO-79foo-80@test.thebookpeople.comCUST_ID_FOO-80foo-81@test.thebookpeople.comCUST_ID_FOO-81foo-82@test.thebookpeople.comCUST_ID_FOO-82foo-83@test.thebookpeople.comCUST_ID_FOO-83foo-84@test.thebookpeople.comCUST_ID_FOO-84foo-85@test.thebookpeople.comCUST_ID_FOO-85foo-86@test.thebookpeople.comCUST_ID_FOO-86foo-87@test.thebookpeople.comCUST_ID_FOO-87foo-88@test.thebookpeople.comCUST_ID_FOO-88foo-89@test.thebookpeople.comCUST_ID_FOO-89foo-90@test.thebookpeople.comCUST_ID_FOO-90foo-91@test.thebookpeople.comCUST_ID_FOO-91foo-92@test.thebookpeople.comCUST_ID_FOO-92foo-93@test.thebookpeople.comCUST_ID_FOO-93foo-94@test.thebookpeople.comCUST_ID_FOO-94foo-95@test.thebookpeople.comCUST_ID_FOO-95foo-96@test.thebookpeople.comCUST_ID_FOO-96foo-97@test.thebookpeople.comCUST_ID_FOO-97foo-98@test.thebookpeople.comCUST_ID_FOO-98foo-99@test.thebookpeople.comCUST_ID_FOO-99foo-100@test.thebookpeople.comCUST_ID_FOO-100foo-101@test.thebookpeople.comCUST_ID_FOO-101foo-102@test.thebookpeople.comCUST_ID_FOO-102foo-103@test.thebookpeople.comCUST_ID_FOO-103foo-104@test.thebookpeople.comCUST_ID_FOO-104foo-105@test.thebookpeople.comCUST_ID_FOO-105foo-106@test.thebookpeople.comCUST_ID_FOO-106foo-107@test.thebookpeople.comCUST_ID_FOO-107foo-108@test.thebookpeople.comCUST_ID_FOO-108foo-109@test.thebookpeople.comCUST_ID_FOO-109foo-110@test.thebookpeople.comCUST_ID_FOO-110foo-111@test.thebookpeople.comCUST_ID_FOO-111foo-112@test.thebookpeople.comCUST_ID_FOO-112foo-113@test.thebookpeople.comCUST_ID_FOO-113foo-114@test.thebookpeople.comCUST_ID_FOO-114foo-115@test.thebookpeople.comCUST_ID_FOO-115foo-116@test.thebookpeople.comCUST_ID_FOO-116foo-117@test.thebookpeople.comCUST_ID_FOO-117foo-118@test.thebookpeople.comCUST_ID_FOO-118foo-119@test.thebookpeople.comCUST_ID_FOO-119foo-120@test.thebookpeople.comCUST_ID_FOO-120foo-121@test.thebookpeople.comCUST_ID_FOO-121foo-122@test.thebookpeople.comCUST_ID_FOO-122foo-123@test.thebookpeople.comCUST_ID_FOO-123foo-124@test.thebookpeople.comCUST_ID_FOO-124foo-125@test.thebookpeople.comCUST_ID_FOO-125foo-126@test.thebookpeople.comCUST_ID_FOO-126foo-127@test.thebookpeople.comCUST_ID_FOO-127foo-128@test.thebookpeople.comCUST_ID_FOO-128foo-129@test.thebookpeople.comCUST_ID_FOO-129foo-130@test.thebookpeople.comCUST_ID_FOO-130foo-131@test.thebookpeople.comCUST_ID_FOO-131foo-132@test.thebookpeople.comCUST_ID_FOO-132foo-133@test.thebookpeople.comCUST_ID_FOO-133foo-134@test.thebookpeople.comCUST_ID_FOO-134foo-135@test.thebookpeople.comCUST_ID_FOO-135foo-136@test.thebookpeople.comCUST_ID_FOO-136foo-137@test.thebookpeople.comCUST_ID_FOO-137foo-138@test.thebookpeople.comCUST_ID_FOO-138foo-139@test.thebookpeople.comCUST_ID_FOO-139foo-140@test.thebookpeople.comCUST_ID_FOO-140foo-141@test.thebookpeople.comCUST_ID_FOO-141foo-142@test.thebookpeople.comCUST_ID_FOO-142foo-143@test.thebookpeople.comCUST_ID_FOO-143foo-144@test.thebookpeople.comCUST_ID_FOO-144foo-145@test.thebookpeople.comCUST_ID_FOO-145foo-146@test.thebookpeople.comCUST_ID_FOO-146foo-147@test.thebookpeople.comCUST_ID_FOO-147foo-148@test.thebookpeople.comCUST_ID_FOO-148foo-149@test.thebookpeople.comCUST_ID_FOO-149trueREPLACE_ALLEMAIL_ADDRESS_ANDIOHTOPTOUT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 01500150 + http_version: + recorded_at: Thu, 28 May 2015 10:17:18 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:17:18 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/CUSTOMER_ID.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/CUSTOMER_ID.yml index 0131ba1..9a815d0 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/CUSTOMER_ID.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/CUSTOMER_ID.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:37 GMT + recorded_at: Thu, 28 May 2015 10:17:31 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: -1Record 0 = CUSTOMER_ID_ is not found in fieldNames or corresponding value is null or empty http_version: - recorded_at: Tue, 05 May 2015 15:54:38 GMT + recorded_at: Thu, 28 May 2015 10:17:32 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:38 GMT + recorded_at: Thu, 28 May 2015 10:17:32 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/EMAIL_ADDDRESS.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/EMAIL_ADDDRESS.yml index 9a0efbd..952b6bd 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/EMAIL_ADDDRESS.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/EMAIL_ADDDRESS.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:33 GMT + recorded_at: Thu, 28 May 2015 10:17:27 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -41,7 +41,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />449436406 http_version: - recorded_at: Tue, 05 May 2015 15:54:34 GMT + recorded_at: Thu, 28 May 2015 10:17:28 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -61,5 +61,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:34 GMT + recorded_at: Thu, 28 May 2015 10:17:28 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/MOBILE_NUMBER.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/MOBILE_NUMBER.yml index a6ed26c..b34fe91 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/MOBILE_NUMBER.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/MOBILE_NUMBER.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:39 GMT + recorded_at: Thu, 28 May 2015 10:17:33 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: -1Record 0 = MOBILE_NUMBER_ is not found in fieldNames or corresponding value is null or empty http_version: - recorded_at: Tue, 05 May 2015 15:54:40 GMT + recorded_at: Thu, 28 May 2015 10:17:34 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:40 GMT + recorded_at: Thu, 28 May 2015 10:17:34 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/RIID.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/RIID.yml index 468ec94..b0506c6 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/RIID.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/match_column/RIID.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:35 GMT + recorded_at: Thu, 28 May 2015 10:17:29 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: -1Record 0 = RIID_ is not found in fieldNames or corresponding value is null or empty http_version: - recorded_at: Tue, 05 May 2015 15:54:36 GMT + recorded_at: Thu, 28 May 2015 10:17:30 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:36 GMT + recorded_at: Thu, 28 May 2015 10:17:30 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/error.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/error.yml index 936d75b..3cfa81a 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/error.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/error.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:31 GMT + recorded_at: Thu, 28 May 2015 10:17:25 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -41,7 +41,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />449436406 http_version: - recorded_at: Tue, 05 May 2015 15:54:32 GMT + recorded_at: Thu, 28 May 2015 10:17:26 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -61,5 +61,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:32 GMT + recorded_at: Thu, 28 May 2015 10:17:26 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/recipient_id.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/recipient_id.yml index 27dac6b..615a314 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/recipient_id.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/recipient_id.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:29 GMT + recorded_at: Thu, 28 May 2015 10:17:23 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -41,7 +41,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />449436406 http_version: - recorded_at: Tue, 05 May 2015 15:54:30 GMT + recorded_at: Thu, 28 May 2015 10:17:24 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -61,5 +61,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:30 GMT + recorded_at: Thu, 28 May 2015 10:17:24 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/returns_200.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/returns_200.yml index beb7351..a731ac9 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/returns_200.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/returns_200.yml @@ -1,919 +1,5 @@ --- http_interactions: -- request: - method: get - uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl - body: - encoding: US-ASCII - string: '' - headers: - response: - status: - code: 200 - message: OK - headers: - body: - encoding: UTF-8 - string: "\n\n This - WSDL contains the APIs needed for customers to integrate their applications - with Responsys Interact.\n \n \n - \ \n - \ \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n\n \n - \ \n \n\n - \ \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n\n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n - \ \n \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Auhenticate the server.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API using Certificate.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n Logout - of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys - account.\n \n \n \n \n \n \n Send Triggered - Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event - to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Schedule a Campaign Launch.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Gets the launch info given a launch Id.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients - from a list.\n \n \n \n \n \n \n \n Deletes - recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing table.\n \n \n \n \n \n \n \n Merge data into a - table.\n \n \n \n \n \n \n \n Retrieves records - from table.\n \n \n \n \n \n \n \n Deletes records from - a table.\n \n \n \n \n \n \n \n Truncate data in existing - table.\n \n \n \n \n \n \n \n Creates a document.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Deletes a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set images to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get images from a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set content to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get content of a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list returning the recipient - ids.\n \n \n \n \n \n \n \n Merge data - into a list extension returning the recipient ids.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Creates an empty table with primary keys.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Merge - data into a table using primary keys.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - records from a list extension.\n \n \n \n \n \n \n \n \n - \ List folders in the Content Library.\n - \ \n - \ \n - \ \n \n \n - \ \n \n\t\t\tCheck - if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder - in the Content Library.\n \n \n \n \n \n \n \n Create folder - in the Content Library.\n \n \n \n \n \n \n \n Create asset - in the Content Library.\n \n \n \n \n \n\n \n Update asset in - the Content Library.\n \n \n \n \n \n \n \n Delete asset - in the Content Library.\n \n \n \n \n \n \n \n Get asset in the - Content Library.\n \n \n \n \n \n \n - \ \n Merge - And Send Triggered Message for 1 or more recipients.\n \n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ \n - \ \n - \ \n \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n - \ \n \n \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n \n \n - \ \t \n \n - \ \n \t \n \n - \ \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n\n - \ \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n\t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n - \ Responsys Web Services API\n \n \n - \ \n \n\n" - http_version: - recorded_at: Tue, 05 May 2015 15:54:23 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -933,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:24 GMT + recorded_at: Thu, 28 May 2015 10:17:19 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -955,7 +41,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />449436406 http_version: - recorded_at: Tue, 05 May 2015 15:54:24 GMT + recorded_at: Thu, 28 May 2015 10:17:20 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -975,5 +61,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:25 GMT + recorded_at: Thu, 28 May 2015 10:17:20 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/status.yml b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/status.yml index 8995c42..7aa7985 100644 --- a/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/status.yml +++ b/spec/cassettes/Api_V1_ProfileExtensionController/create/ok/status.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:54:27 GMT + recorded_at: Thu, 28 May 2015 10:17:21 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -41,7 +41,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />449436406 http_version: - recorded_at: Tue, 05 May 2015 15:54:28 GMT + recorded_at: Thu, 28 May 2015 10:17:22 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -61,5 +61,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:54:28 GMT + recorded_at: Thu, 28 May 2015 10:17:22 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/has_default_result_colums.yml b/spec/cassettes/Api_V1_SearchController/create/has_default_result_colums.yml index 718f221..48be4c8 100644 --- a/spec/cassettes/Api_V1_SearchController/create/has_default_result_colums.yml +++ b/spec/cassettes/Api_V1_SearchController/create/has_default_result_colums.yml @@ -1,919 +1,5 @@ --- http_interactions: -- request: - method: get - uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl - body: - encoding: US-ASCII - string: '' - headers: - response: - status: - code: 200 - message: OK - headers: - body: - encoding: UTF-8 - string: "\n\n This - WSDL contains the APIs needed for customers to integrate their applications - with Responsys Interact.\n \n \n - \ \n - \ \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n\n \n - \ \n \n\n - \ \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n\n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n - \ \n \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Auhenticate the server.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API using Certificate.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n Logout - of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys - account.\n \n \n \n \n \n \n Send Triggered - Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event - to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Schedule a Campaign Launch.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Gets the launch info given a launch Id.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients - from a list.\n \n \n \n \n \n \n \n Deletes - recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing table.\n \n \n \n \n \n \n \n Merge data into a - table.\n \n \n \n \n \n \n \n Retrieves records - from table.\n \n \n \n \n \n \n \n Deletes records from - a table.\n \n \n \n \n \n \n \n Truncate data in existing - table.\n \n \n \n \n \n \n \n Creates a document.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Deletes a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set images to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get images from a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set content to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get content of a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list returning the recipient - ids.\n \n \n \n \n \n \n \n Merge data - into a list extension returning the recipient ids.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Creates an empty table with primary keys.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Merge - data into a table using primary keys.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - records from a list extension.\n \n \n \n \n \n \n \n \n - \ List folders in the Content Library.\n - \ \n - \ \n - \ \n \n \n - \ \n \n\t\t\tCheck - if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder - in the Content Library.\n \n \n \n \n \n \n \n Create folder - in the Content Library.\n \n \n \n \n \n \n \n Create asset - in the Content Library.\n \n \n \n \n \n\n \n Update asset in - the Content Library.\n \n \n \n \n \n \n \n Delete asset - in the Content Library.\n \n \n \n \n \n \n \n Get asset in the - Content Library.\n \n \n \n \n \n \n - \ \n Merge - And Send Triggered Message for 1 or more recipients.\n \n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ \n - \ \n - \ \n \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n - \ \n \n \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n \n \n - \ \t \n \n - \ \n \t \n \n - \ \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n\n - \ \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n\t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n - \ Responsys Web Services API\n \n \n - \ \n \n\n" - http_version: - recorded_at: Tue, 05 May 2015 15:52:14 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -933,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:52:15 GMT + recorded_at: Thu, 28 May 2015 10:17:43 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -956,7 +42,7 @@ http_interactions: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />4494364030002user2@example.com http_version: - recorded_at: Tue, 05 May 2015 15:52:15 GMT + recorded_at: Thu, 28 May 2015 10:17:44 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -976,5 +62,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:52:16 GMT + recorded_at: Thu, 28 May 2015 10:17:45 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/no_results/200_returned.yml b/spec/cassettes/Api_V1_SearchController/create/no_results/200_returned.yml index de9b7c5..916a93e 100644 --- a/spec/cassettes/Api_V1_SearchController/create/no_results/200_returned.yml +++ b/spec/cassettes/Api_V1_SearchController/create/no_results/200_returned.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:20 GMT + recorded_at: Thu, 28 May 2015 10:17:45 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: xmlns="urn:fault.ws.rsys.com">RECORD_NOT_FOUNDNo records found in the list for given ids http_version: - recorded_at: Tue, 05 May 2015 15:53:21 GMT + recorded_at: Thu, 28 May 2015 10:17:46 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:22 GMT + recorded_at: Thu, 28 May 2015 10:17:47 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/no_results/error_message.yml b/spec/cassettes/Api_V1_SearchController/create/no_results/error_message.yml index 608ca0a..9efc755 100644 --- a/spec/cassettes/Api_V1_SearchController/create/no_results/error_message.yml +++ b/spec/cassettes/Api_V1_SearchController/create/no_results/error_message.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:23 GMT + recorded_at: Thu, 28 May 2015 10:17:47 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: xmlns="urn:fault.ws.rsys.com">RECORD_NOT_FOUNDNo records found in the list for given ids http_version: - recorded_at: Tue, 05 May 2015 15:53:24 GMT + recorded_at: Thu, 28 May 2015 10:17:48 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:24 GMT + recorded_at: Thu, 28 May 2015 10:17:49 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/no_results/status.yml b/spec/cassettes/Api_V1_SearchController/create/no_results/status.yml index 38eec38..febbced 100644 --- a/spec/cassettes/Api_V1_SearchController/create/no_results/status.yml +++ b/spec/cassettes/Api_V1_SearchController/create/no_results/status.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:25 GMT + recorded_at: Thu, 28 May 2015 10:17:49 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -40,7 +40,7 @@ http_interactions: xmlns="urn:fault.ws.rsys.com">RECORD_NOT_FOUNDNo records found in the list for given ids http_version: - recorded_at: Tue, 05 May 2015 15:53:27 GMT + recorded_at: Thu, 28 May 2015 10:17:50 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -60,5 +60,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:28 GMT + recorded_at: Thu, 28 May 2015 10:17:51 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/returns_200.yml b/spec/cassettes/Api_V1_SearchController/create/returns_200.yml index e0b8d8c..e6de50f 100644 --- a/spec/cassettes/Api_V1_SearchController/create/returns_200.yml +++ b/spec/cassettes/Api_V1_SearchController/create/returns_200.yml @@ -1,919 +1,5 @@ --- http_interactions: -- request: - method: get - uri: https://ws2.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl - body: - encoding: US-ASCII - string: '' - headers: - response: - status: - code: 200 - message: OK - headers: - body: - encoding: UTF-8 - string: "\n\n This - WSDL contains the APIs needed for customers to integrate their applications - with Responsys Interact.\n \n \n - \ \n - \ \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n\n \n - \ \n \n\n - \ \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n - \ \n\n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n\t\n - \ \n - \ \n \n \n - \ \n - \ \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n - \ \n \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Auhenticate the server.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Login to the Responsys Web Services API using Certificate.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n Logout - of the Responsys Web Services API.\n \n \n \n \n \n \n Creates a new folder.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing folder.\n \n \n \n \n \n \n \n List folders in the Responsys - account.\n \n \n \n \n \n \n Send Triggered - Message to 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Merge And Send Triggered - Message for 1 or more recipients.\n \n \n \n \n \n \n \n \n Trigger Custom Event - to 1 or more recipients.\n \n \n \n \n \n \n \n \n Launch a Campaign Immediately.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Schedule a Campaign Launch.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Gets the launch info given a launch Id.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - recipients from a list.\n \n \n \n \n \n \n \n Deletes recipients - from a list.\n \n \n \n \n \n \n \n Deletes - recipients from a profile extension.\n \n \n \n \n \n \n \n Creates an empty table.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Deletes - an existing table.\n \n \n \n \n \n \n \n Merge data into a - table.\n \n \n \n \n \n \n \n Retrieves records - from table.\n \n \n \n \n \n \n \n Deletes records from - a table.\n \n \n \n \n \n \n \n Truncate data in existing - table.\n \n \n \n \n \n \n \n Creates a document.\n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Deletes a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set images to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get images from a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Set content to a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Get content of a document.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Merge data into a list returning the recipient - ids.\n \n \n \n \n \n \n \n Merge data - into a list extension returning the recipient ids.\n \n - \ \n - \ \n - \ \n - \ \n \n \n - \ Creates an empty table with primary keys.\n - \ \n - \ \n - \ \n \n \n - \ \n \n Merge - data into a table using primary keys.\n \n - \ \n - \ \n \n \n - \ \n \n Retrieves - records from a list extension.\n \n \n \n \n \n \n \n \n - \ List folders in the Content Library.\n - \ \n - \ \n - \ \n \n \n - \ \n \n\t\t\tCheck - if folder exists in the Content Library.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n \n \n Delete folder - in the Content Library.\n \n \n \n \n \n \n \n Create folder - in the Content Library.\n \n \n \n \n \n \n \n Create asset - in the Content Library.\n \n \n \n \n \n\n \n Update asset in - the Content Library.\n \n \n \n \n \n \n \n Delete asset - in the Content Library.\n \n \n \n \n \n \n \n Get asset in the - Content Library.\n \n \n \n \n \n \n - \ \n Merge - And Send Triggered Message for 1 or more recipients.\n \n - \ \n - \ \n - \ \n - \ \n - \ \n \n \n - \ \n - \ \n - \ \n \n - \ \n \n \n - \ \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n - \ \n \n \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n \n \n \n \n - \ \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n - \ \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n - \n \n \n - \ - \n \n \n \n \n \n - \ \n \n \n \n \n - \ \n \n \n \n \n \n - \ - \n \n \n \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n \n \n - \ \t \n \n - \ \n \t \n \n - \ \n \n \n - \ \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n\n - \ \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n \n - \ \n \n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \n \n \t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n\t\t\n \n \n - \ \t\n - \ \n \n \n \t\n - \ \n \n \t \n \n \n \t \n \n - \ \n \n \n \n \n - \ \n - \ \n \n \n \n - \ \n \n - \ - \n \n \n - \ - \n \n \n - \ - \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n - \ \n \n \n \n - \ \n \n - \ \n \n \n \n - \ Responsys Web Services API\n \n \n - \ \n \n\n" - http_version: - recorded_at: Tue, 05 May 2015 15:53:11 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -933,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:12 GMT + recorded_at: Thu, 28 May 2015 10:17:35 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -953,7 +39,7 @@ http_interactions: string: EMAIL_DELIVERABILITY_STATUS_EMAIL_MD5_HASH_D111d68d06e2d317b5a59c2c6c5bad808D111d68d06e2d317b5a59c2c6c5bad808Dab53a2911ddf9b4817ac01ddcd3d975f http_version: - recorded_at: Tue, 05 May 2015 15:53:13 GMT + recorded_at: Thu, 28 May 2015 10:17:36 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -973,5 +59,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:13 GMT + recorded_at: Thu, 28 May 2015 10:17:36 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/returns_ok.yml b/spec/cassettes/Api_V1_SearchController/create/returns_ok.yml index 1c8e8fc..6263832 100644 --- a/spec/cassettes/Api_V1_SearchController/create/returns_ok.yml +++ b/spec/cassettes/Api_V1_SearchController/create/returns_ok.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:14 GMT + recorded_at: Thu, 28 May 2015 10:17:37 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -39,7 +39,7 @@ http_interactions: string: EMAIL_DELIVERABILITY_STATUS_EMAIL_MD5_HASH_D111d68d06e2d317b5a59c2c6c5bad808D111d68d06e2d317b5a59c2c6c5bad808Dab53a2911ddf9b4817ac01ddcd3d975f http_version: - recorded_at: Tue, 05 May 2015 15:53:15 GMT + recorded_at: Thu, 28 May 2015 10:17:38 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -59,5 +59,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:15 GMT + recorded_at: Thu, 28 May 2015 10:17:38 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/returns_results.yml b/spec/cassettes/Api_V1_SearchController/create/returns_results.yml index 60ebb1a..888b533 100644 --- a/spec/cassettes/Api_V1_SearchController/create/returns_results.yml +++ b/spec/cassettes/Api_V1_SearchController/create/returns_results.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:16 GMT + recorded_at: Thu, 28 May 2015 10:17:39 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -39,7 +39,7 @@ http_interactions: string: EMAIL_DELIVERABILITY_STATUS_EMAIL_MD5_HASH_D111d68d06e2d317b5a59c2c6c5bad808D111d68d06e2d317b5a59c2c6c5bad808Dab53a2911ddf9b4817ac01ddcd3d975f http_version: - recorded_at: Tue, 05 May 2015 15:53:17 GMT + recorded_at: Thu, 28 May 2015 10:17:40 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -59,5 +59,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:17 GMT + recorded_at: Thu, 28 May 2015 10:17:40 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_SearchController/create/supports_custom_results_fields.yml b/spec/cassettes/Api_V1_SearchController/create/supports_custom_results_fields.yml index 1988b47..4f9f21c 100644 --- a/spec/cassettes/Api_V1_SearchController/create/supports_custom_results_fields.yml +++ b/spec/cassettes/Api_V1_SearchController/create/supports_custom_results_fields.yml @@ -19,7 +19,7 @@ http_interactions: string: DEAR_SESSION_ID http_version: - recorded_at: Tue, 05 May 2015 15:53:18 GMT + recorded_at: Thu, 28 May 2015 10:17:41 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -39,7 +39,7 @@ http_interactions: string: EMAIL_DELIVERABILITY_STATUS_EMAIL_MD5_HASH_D111d68d06e2d317b5a59c2c6c5bad808D111d68d06e2d317b5a59c2c6c5bad808Dab53a2911ddf9b4817ac01ddcd3d975f http_version: - recorded_at: Tue, 05 May 2015 15:53:19 GMT + recorded_at: Thu, 28 May 2015 10:17:42 GMT - request: method: post uri: https://ws2.responsys.net/webservices/services/ResponsysWSService @@ -59,5 +59,5 @@ http_interactions: string: true http_version: - recorded_at: Tue, 05 May 2015 15:53:19 GMT + recorded_at: Thu, 28 May 2015 10:17:43 GMT recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/200_returned.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/200_returned.yml new file mode 100644 index 0000000..45da3ed --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/200_returned.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:08 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:08 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:09 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/error_message.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/error_message.yml new file mode 100644 index 0000000..d1ba69c --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/error_message.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:12 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:12 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:13 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/should_return_a_recipient_id_of_-1.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/should_return_a_recipient_id_of_-1.yml new file mode 100644 index 0000000..bf17740 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/should_return_a_recipient_id_of_-1.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:10 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:10 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:11 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/status_is_false.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/status_is_false.yml new file mode 100644 index 0000000..7ecca65 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/not_on_list/status_is_false.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:14 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:14 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:15 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_200.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_200.yml new file mode 100644 index 0000000..8b52042 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_200.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:43:57 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:43:58 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:43:59 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_ok.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_ok.yml new file mode 100644 index 0000000..e06f7e5 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_ok.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:00 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:00 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:01 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_results_as_an_array_of_objects.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_results_as_an_array_of_objects.yml new file mode 100644 index 0000000..1c828c0 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/returns_results_as_an_array_of_objects.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:02 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found + http_version: + recorded_at: Thu, 28 May 2015 10:44:02 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:03 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/with_150_recipients/returns_200.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/with_150_recipients/returns_200.yml new file mode 100644 index 0000000..ec7c0c6 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_multiple_recipients/with_150_recipients/returns_200.yml @@ -0,0 +1,217 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:44:04 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0no-on-list@fake.thebookpeople.comNO_FORMATPRODUCT_TITLENot + RealAUTHORIwan + PritchardPRICE1.23FIRST_NAMENotSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpgz_Stock_Alertsz_Stock_Alerts_Test_List0foo-2@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-3@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-4@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-5@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-6@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-7@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-8@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-9@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-10@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-11@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-12@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-13@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-14@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-15@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-16@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-17@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-18@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-19@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-20@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-21@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-22@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-23@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-24@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-25@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-26@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-27@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-28@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-29@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-30@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-31@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-32@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-33@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-34@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-35@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-36@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-37@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-38@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-39@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-40@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-41@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-42@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-43@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-44@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-45@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-46@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-47@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-48@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-49@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-50@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-51@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-52@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-53@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-54@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-55@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-56@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-57@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-58@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-59@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-60@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-61@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-62@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-63@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-64@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-65@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-66@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-67@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-68@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-69@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-70@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-71@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-72@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-73@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-74@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-75@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-76@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-77@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-78@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-79@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-80@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-81@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-82@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-83@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-84@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-85@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-86@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-87@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-88@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-89@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-90@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-91@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-92@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-93@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-94@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-95@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-96@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-97@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-98@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-99@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-100@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-101@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-102@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-103@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-104@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-105@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-106@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-107@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-108@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-109@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-110@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-111@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-112@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-113@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-114@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-115@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-116@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-117@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-118@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-119@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-120@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-121@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-122@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-123@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-124@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-125@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-126@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-127@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-128@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-129@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-130@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-131@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-132@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-133@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-134@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-135@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-136@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-137@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-138@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-139@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-140@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-141@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-142@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-143@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-144@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-145@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-146@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-147@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-148@test.thebookpeople.comNO_FORMATz_Stock_Alertsz_Stock_Alerts_Test_List0foo-149@test.thebookpeople.comNO_FORMAT + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true-1falseRecipient + Not Found453840450true453840451true453840452true453840453true453840454true453840455true453840456true453840457true453840458true453840459true453840460true453840461true453840462true453840463true453840464true453840465true453840466true453840467true453840468true453840469true453840470true453840471true453840472true453840473true453840474true453840475true453840476true453840477true453840478true453840479true453840480true453840481true453840482true453840483true453840484true453840485true453840486true453840487true453840488true453840489true453840490true453840491true453840492true453840493true453840494true453840495true453840496true453840497true453840498true453840499true453840500true453840501true453840502true453840503true453840504true453840505true453840506true453840507true453840508true453840509true453840510true453840511true453840512true453840513true453840514true453840515true453840516true453840517true453840518true453840519true453840520true453840521true453840522true453840523true453840524true453840525true453840526true453840527true453840528true453840529true453840530true453840531true453840532true453840533true453840534true453840535true453840536true453840537true453840538true453840539true453840540true453840541true453840542true453840543true453840544true453840545true453840546true453840547true453840548true453840549true453840550true453840551true453840552true453840553true453840554true453840555true453840556true453840557true453840558true453840559true453840560true453840561true453840562true453840563true453840564true453840565true453840566true453840567true453840568true453840569true453840570true453840571true453840572true453840573true453840574true453840575true453840576true453840577true453840578true453840579true453840580true453840581true453840582true453840583true453840584true453840585true453840586true453840587true453840588true453840589true453840590true453840591true453840592true453840593true453840594true453840595true453840596true453840597true + http_version: + recorded_at: Thu, 28 May 2015 10:44:06 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:44:07 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_200.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_200.yml new file mode 100644 index 0000000..6e8b4f7 --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_200.yml @@ -0,0 +1,66 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:43:53 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true + http_version: + recorded_at: Thu, 28 May 2015 10:43:54 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:43:55 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_a_single_result.yml b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_a_single_result.yml new file mode 100644 index 0000000..b14e52d --- /dev/null +++ b/spec/cassettes/Api_V1_TriggerCampaignMessageController/create_with_single_recipient/returns_a_single_result.yml @@ -0,0 +1,66 @@ +--- +http_interactions: +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: your_responsys_usernameyour_responsys_password + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + http_version: + recorded_at: Thu, 28 May 2015 10:43:55 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_IDz_Stock_Alertsz_TBP_Stock_Alertsz_Stock_Alertsz_Stock_Alerts_Test_List0luke.farrar@thebookpeople.co.ukNO_FORMATPRODUCT_TITLEBob + PidgeonAUTHORIwan + PritchardPRICE1.23FIRST_NAMEBobSAVING0.77PRODUCT_PAGE_URLhttp://www.thebookpeople.co.uk/books/NROJPRODUCT_IMAGE_URLhttp://images.thebookpeople.co.uk/NROJ.jpg + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: 452640586true + http_version: + recorded_at: Thu, 28 May 2015 10:43:56 GMT +- request: + method: post + uri: https://ws2.responsys.net/webservices/services/ResponsysWSService + body: + encoding: UTF-8 + string: DEAR_SESSION_ID + headers: + response: + status: + code: 200 + message: OK + headers: + body: + encoding: UTF-8 + string: true + http_version: + recorded_at: Thu, 28 May 2015 10:43:57 GMT +recorded_with: VCR 2.9.3 diff --git a/spec/cassettes/ServiceStatus/add_http_get_check/ok.yml b/spec/cassettes/ServiceStatus/add_http_get_check/ok.yml index d37ee65..0bd2103 100644 --- a/spec/cassettes/ServiceStatus/add_http_get_check/ok.yml +++ b/spec/cassettes/ServiceStatus/add_http_get_check/ok.yml @@ -913,5 +913,5 @@ http_interactions: location=\"https://ws2.responsys.net/webservices/services/ResponsysWSService\"/>\n \ \n \n\n" http_version: - recorded_at: Tue, 05 May 2015 15:54:42 GMT + recorded_at: Thu, 28 May 2015 10:18:12 GMT recorded_with: VCR 2.9.3 diff --git a/spec/controllers/api/v1/list_controller_spec.rb b/spec/controllers/api/v1/list_controller_spec.rb new file mode 100644 index 0000000..596229b --- /dev/null +++ b/spec/controllers/api/v1/list_controller_spec.rb @@ -0,0 +1,144 @@ +require 'rails_helper' + +describe Api::V1::ListController, type: :controller do + describe 'adding to list', :vcr do + it 'returns 200' do + post :create, get_json + expect(response.status).to eq 200 + end + it 'returns total_count of 2' do + post :create, get_json + expect(response_json['total_count']).to eq '2' + end + + it 'handles non-ok status' do + @client = instance_double("Responsys::Api::Client") + expect(Responsys::Api::Client).to receive(:new) { @client } + expect(@client).to receive(:merge_list_members) { {:status => 'not ok'} } + post :create, get_json + expect(response_json['status']).to eq 'not ok' + end + + it 'returns error_message of nil' do + post :create, get_json + expect(response_json['error_message']).to eq nil + end + + it 'returns rejected_count of 0' do + post :create, get_json + expect(response_json['rejected_count']).to eq '0' + expect(response_json['error_message']).to eq nil + end + + describe 'with 150 recipients' do + it 'returns 200' do + data = get_json + (2..149).each do |i| + data[:record_data] << { + 'EMAIL_ADDRESS_' => "foo-#{i}@test.thebookpeople.com", + 'CUSTOMER_ID_' => "CUST_ID_FOO-#{i}" + } + end + expect(data[:record_data].size).to eq 150 + post :create, data + expect(response.status).to eq 200 + expect(response_json['total_count']).to eq '150' + expect(response_json['rejected_count']).to eq '0' + end + end + describe 'with 151 recipients' do + + it 'returns 400' do + data = get_json + (2..150).each do |i| + data[:record_data] << { + 'EMAIL_ADDRESS_' => "foo-#{i}@test.thebookpeople.com", + 'CUSTOMER_ID_' => "CUST_ID_FOO-#{i}" + } + end + expect(data[:record_data].size).to eq 151 + post :create, data + expect(response.status).to eq 400 + end + it 'sets error_message' do + data = get_json + (2..150).each do |i| + data[:record_data] << { + 'EMAIL_ADDRESS_' => "foo-#{i}@test.thebookpeople.com", + 'CUSTOMER_ID_' => "CUST_ID_FOO-#{i}" + } + end + expect(data[:record_data].size).to eq 151 + post :create, data + expect(response_json['error_message']).to eq 'Maximum of 150 records exceeded.' + end + end + +# describe 'not on list' do +# it '200 returned' do +# data = get_json +# post :create, data +# expect(response.status).to equal 200 +# end +# +# it 'should return a recipient_id of -1' do +# data = get_json +# post :create, data +# expect(response_json[1]['recipient_id']).to eq '-1' +# end +# +# it 'error message' do +# data = get_json +# post :create, data +# expect(response_json[1]['error_message']).to eq 'Recipient Not Found' +# end +# +# it 'status is false' do +# data = get_json +# post :create, data +# expect(response_json[1]['success']).to eq false +# end +# end + + describe 'missing param' do + it 'list' do + post :create, get_json.except(:list) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'list' parameter" + end + + it 'folder' do + post :create, get_json.except(:folder) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'folder' parameter" + end + + it 'fails when missing recipients' do + post :create, get_json.except(:record_data) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'record_data' parameter" + end + end + end + + def get_json + { + :folder => "z_Stock_Alerts",#'TBP_Prog_Stock_Alert',# + :list => 'z_Stock_Alerts_Test_List',#'Empty_Stock_Alerts_List' + :record_data => [ + { + 'EMAIL_ADDRESS_':'luke.farrar@thebookpeople.co.uk', + 'CUSTOMER_ID_':'CUST_ID_99', + }, + { + 'EMAIL_ADDRESS_':'lukepfarrar@gmail.com', + 'CUSTOMER_ID_':'CUST_ID_33', + } + ] + } + end + + def response_json + JSON.parse(response.body) + end +end diff --git a/spec/controllers/api/v1/profile_extension_controller_spec.rb b/spec/controllers/api/v1/profile_extension_controller_spec.rb index a008cc9..82f8c1c 100644 --- a/spec/controllers/api/v1/profile_extension_controller_spec.rb +++ b/spec/controllers/api/v1/profile_extension_controller_spec.rb @@ -58,46 +58,53 @@ data = get_json data[:match_column] = 'EMAIL_PERMISSION_REASON' post :create, data - expect(response_json['error']['message']).to eql 'Invalid value for match_column must one of the following. RIID, CUSTOMER_ID, EMAIL_ADDRESS or MOBILE_NUMBER' + expect(response_json['error_message']).to eql 'Invalid value for match_column must one of the following. RIID, CUSTOMER_ID, EMAIL_ADDRESS or MOBILE_NUMBER' end end describe 'missing param' do it 'profile_extension' do post :create, get_json.except(:profile_extension) - expect(response_json['error']['message']).to eq 'Missing profile_extension parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'profile_extension' parameter" end it 'folder' do post :create, get_json.except(:folder) - expect(response_json['error']['message']).to eq 'Missing folder parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'folder' parameter" end it 'record_data' do post :create, get_json.except(:record_data) - expect(response_json['error']['message']).to eq 'Missing record_data parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'record_data' parameter" end it 'record_data is has one entry' do data = get_json data[:record_data] = [] post :create, data - expect(response_json['error']['message']).to eq 'Invalid record_data must have at least one record' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Invalid record_data must have at least one record" end it 'match_column' do post :create, get_json.except(:match_column) - expect(response_json['error']['message']).to eq 'Missing match_column parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'match_column' parameter" end it 'insert_on_no_match' do post :create, get_json.except(:insert_on_no_match) - expect(response_json['error']['message']).to eq 'Missing insert_on_no_match parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'insert_on_no_match' parameter" end it 'update_on_match' do post :create, get_json.except(:update_on_match) - expect(response_json['error']['message']).to eq 'Missing update_on_match parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'update_on_match' parameter" end end end diff --git a/spec/controllers/api/v1/search_controller_spec.rb b/spec/controllers/api/v1/search_controller_spec.rb index 18f5672..6793d36 100644 --- a/spec/controllers/api/v1/search_controller_spec.rb +++ b/spec/controllers/api/v1/search_controller_spec.rb @@ -60,22 +60,26 @@ describe 'missing param' do it 'list' do post :create, get_json.except(:list) - expect(response_json['error']['message']).to eq 'Missing list parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'list' parameter" end it 'folder' do post :create, get_json.except(:folder) - expect(response_json['error']['message']).to eq 'Missing folder parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'folder' parameter" end it 'query_column' do post :create, get_json.except(:query_column) - expect(response_json['error']['message']).to eq 'Missing query_column parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'query_column' parameter" end it 'query_data' do post :create, get_json.except(:query_data) - expect(response_json['error']['message']).to eq 'Missing query_data parameter' + expect(response.status).to equal 400 + expect(response_json['error_message']).to eq "Missing 'query_data' parameter" end end end diff --git a/spec/controllers/api/v1/trigger_campaign_message_controller_spec.rb b/spec/controllers/api/v1/trigger_campaign_message_controller_spec.rb new file mode 100644 index 0000000..02bed6d --- /dev/null +++ b/spec/controllers/api/v1/trigger_campaign_message_controller_spec.rb @@ -0,0 +1,172 @@ +require 'rails_helper' + +describe Api::V1::TriggerCampaignMessageController, type: :controller do + + describe 'create with single recipient', :vcr do + it 'returns 200' do + data = get_json + data[:recipients].pop + post :create, data + expect(response.status).to eq 200 + end + it 'returns a single result' do + data = get_json + data[:recipients].pop + post :create, data + expect(response_json.size).to eq 1 + end + end + describe 'create with multiple recipients', :vcr do + it 'returns 200' do + post :create, get_json + expect(response.status).to eq 200 + end + + it 'handles non-ok status' do + @client = instance_double("Responsys::Api::Client") + expect(Responsys::Api::Client).to receive(:new) { @client } + expect(@client).to receive(:trigger_message) do + { + :status => 'not ok', + :error => { + :code => 'ERR99', + :message => 'Mocked Failure' + } + } + end + post :create, get_json + expect(response_json['error_code']).to eq 'ERR99' + expect(response_json['error_message']).to eq 'Mocked Failure' + expect(response.status).to eq 500 + end + + it 'returns ok' do + post :create, get_json + expect(response_json[0]['success']).to eq true + end + + it 'returns results as an array of objects' do + post :create, get_json + expect(response_json.length).to equal 2 + expect(response_json[0].length).to equal 3 + expect(response_json[1].length).to equal 3 + end + + describe 'with 150 recipients' do + it 'returns 200' do + data = get_json + (2..149).each { |i| data[:recipients] << { email:"foo-#{i}@test.thebookpeople.com" }} + expect(data[:recipients].size).to eq 150 + post :create, data + expect(response.status).to eq 200 + end + end + describe 'with 151 recipients' do + + it 'returns 400' do + data = get_json + (2..150).each { |i| data[:recipients] << {email:"foo-#{i}@test.thebookpeople.com"}} + expect(data[:recipients].size).to eq 151 + post :create, data + expect(response.status).to eq 400 + end + it 'sets error_message' do + data = get_json + (2..150).each { |i| data[:recipients] << {email:"foo-#{i}@test.thebookpeople.com"}} + post :create, data + expect(response_json['error_message']).to eq 'Maximum of 150 recipients' + end + end + + describe 'not on list' do + it '200 returned' do + data = get_json + post :create, data + expect(response.status).to equal 200 + end + + it 'should return a recipient_id of -1' do + data = get_json + post :create, data + expect(response_json[1]['recipient_id']).to eq '-1' + end + + it 'error message' do + data = get_json + post :create, data + expect(response_json[1]['error_message']).to eq 'Recipient Not Found' + end + + it 'status is false' do + data = get_json + post :create, data + expect(response_json[1]['success']).to eq false + end + end + + describe 'missing param' do + it 'list' do + post :create, get_json.except(:list) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'list' parameter" + end + + it 'folder' do + post :create, get_json.except(:folder) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'folder' parameter" + end + + it 'fails when missing recipients' do + post :create, get_json.except(:recipients) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'recipients' parameter" + end + + it 'campaign' do + post :create, get_json.except(:campaign) + expect(response.status).to eq 400 + expect(response_json['error_message']).to eq "Missing 'campaign' parameter" + end + end + end + + def get_json + { + :folder => "z_Stock_Alerts",#'TBP_Prog_Stock_Alert',# + :campaign => "z_TBP_Stock_Alerts",#'Stock_Alerts_Campaign' + :list => 'z_Stock_Alerts_Test_List',#'Empty_Stock_Alerts_List' + :recipients => [ + { + :email => 'luke.farrar@thebookpeople.co.uk', + :optional_data => { + PRODUCT_TITLE: 'Bob Pidgeon', + AUTHOR: 'Iwan Pritchard', + PRICE: '1.23', + FIRST_NAME: 'Bob', + SAVING: '0.77', + PRODUCT_PAGE_URL: 'http://www.thebookpeople.co.uk/books/NROJ', + PRODUCT_IMAGE_URL: 'http://images.thebookpeople.co.uk/NROJ.jpg' + } + }, + { + :email => 'no-on-list@fake.thebookpeople.com', + :optional_data => { + PRODUCT_TITLE: 'Not Real', + AUTHOR: 'Iwan Pritchard', + PRICE: '1.23', + FIRST_NAME: 'Not', + SAVING: '0.77', + PRODUCT_PAGE_URL: 'http://www.thebookpeople.co.uk/books/NROJ', + PRODUCT_IMAGE_URL: 'http://images.thebookpeople.co.uk/NROJ.jpg' + } + + } + ] + } + end + + def response_json + JSON.parse(response.body) + end +end diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index ecbabf3..d22f018 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -15,7 +15,7 @@ def index @request.env["CONTENT_TYPE"] = "application/json" get :index, format: :json - expect(response.body).to eql "{\"status\":\"failure\",\"error\":{\"message\":\"Boom!\"}}" + expect(response.body).to eql "{\"error_message\":\"Boom!\"}" end it 'html' do diff --git a/spec/services/service_status_spec.rb b/spec/services/service_status_spec.rb index 54ebc09..416cf89 100644 --- a/spec/services/service_status_spec.rb +++ b/spec/services/service_status_spec.rb @@ -99,6 +99,22 @@ Timecop.return end + describe 'add_check' do + it 'had a check that was ok' do + @instance.add_check("ElasticSearch", true) + expect(@instance.checks).to eql ['ElasticSearch'] + expect(@instance.errors).to eql [] + expect(@instance.status).to eql 'Online' + end + + it 'had a check that failed' do + @instance.add_check("ElasticSearch", false) + expect(@instance.checks).to eql ['ElasticSearch'] + expect(@instance.errors).to eql ['ElasticSearch'] + expect(@instance.status).to eql 'Error' + end + end + describe 'add_http_get_check', :vcr do it 'ok' do