responsys-api 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +3 -0
  3. data/.travis.yml +7 -0
  4. data/README.md +2 -2
  5. data/Rakefile +11 -0
  6. data/lib/responsys/api/campaign.rb +1 -1
  7. data/lib/responsys/api/client.rb +7 -10
  8. data/lib/responsys/api/object/email_format.rb +1 -1
  9. data/lib/responsys/api/object/field_type.rb +1 -1
  10. data/lib/responsys/api/object/optional_data.rb +1 -1
  11. data/lib/responsys/api/object/query_column.rb +1 -1
  12. data/lib/responsys/api/object/record.rb +1 -1
  13. data/lib/responsys/api/object/record_data.rb +1 -1
  14. data/lib/responsys/api/session.rb +16 -1
  15. data/lib/responsys/helper.rb +9 -1
  16. data/lib/responsys/i18n/en.yml +24 -19
  17. data/lib/responsys/i18n/fr.yml +21 -0
  18. data/lib/responsys_api.rb +1 -3
  19. data/responsys-api.gemspec +1 -1
  20. data/spec/api/campaign_spec.rb +3 -7
  21. data/spec/api/client_spec.rb +18 -48
  22. data/spec/api/list_spec.rb +7 -11
  23. data/spec/api/table_spec.rb +26 -31
  24. data/spec/api_credentials.sample.yml +3 -0
  25. data/spec/fixtures/vcr_cassettes/api/client/expired_session.yml +14 -953
  26. data/spec/fixtures/vcr_cassettes/api/list/merge.yml +9 -97
  27. data/spec/fixtures/vcr_cassettes/api/list/retrieve.yml +11 -11
  28. data/spec/fixtures/vcr_cassettes/api/list/retrieve_single.yml +9 -97
  29. data/spec/fixtures/vcr_cassettes/api/list/retrieve_single_single.yml +9 -9
  30. data/spec/fixtures/vcr_cassettes/api/profile_extension/merge_profile_extension_records.yml +10 -10
  31. data/spec/fixtures/vcr_cassettes/api/profile_extension/retrieve_profile_extension_records.yml +10 -10
  32. data/spec/fixtures/vcr_cassettes/api/table/create_with_pk.yml +8 -8
  33. data/spec/fixtures/vcr_cassettes/api/table/delete_with_pk.yml +8 -8
  34. data/spec/fixtures/vcr_cassettes/member/present1.yml +8 -945
  35. data/spec/fixtures/vcr_cassettes/member/present2.yml +8 -8
  36. data/spec/fixtures/vcr_cassettes/member/present3.yml +8 -8
  37. data/spec/fixtures/vcr_cassettes/member/present4.yml +8 -8
  38. data/spec/fixtures/vcr_cassettes/member/present5.yml +8 -8
  39. data/spec/fixtures/vcr_cassettes/member/retrieve_profile_extension.yml +19 -19
  40. data/spec/helper_spec.rb +31 -0
  41. data/spec/member_spec.rb +12 -21
  42. data/spec/spec_helper.rb +32 -15
  43. data/spec/test_data.yml +38 -0
  44. metadata +10 -12
  45. data/spec/fixtures/vcr_cassettes/api/campaign/login.yml +0 -940
  46. data/spec/fixtures/vcr_cassettes/api/list/login.yml +0 -982
  47. data/spec/fixtures/vcr_cassettes/api/profile_extension/login.yml +0 -982
  48. data/spec/fixtures/vcr_cassettes/api/table/create.yml +0 -45
  49. data/spec/fixtures/vcr_cassettes/api/table/delete.yml +0 -45
@@ -2,109 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>NtMtC6xjc9DVKwzOJlgvS20337</sessionId></sessionHeader></env:Header><env:Body><tns:mergeListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:recordData><tns:fieldNames>Email_Address_</tns:fieldNames><tns:fieldNames>Mobile_Number_</tns:fieldNames><tns:fieldNames>Customer_ID_</tns:fieldNames><tns:records><tns:fieldValues>wsxxxx</tns:fieldValues><tns:fieldValues>0000000001</tns:fieldValues><tns:fieldValues></tns:fieldValues></tns:records><tns:records><tns:fieldValues></tns:fieldValues><tns:fieldValues>0000000000</tns:fieldValues><tns:fieldValues></tns:fieldValues></tns:records></tns:recordData><tns:mergeRule><tns:insertOnNoMatch>false</tns:insertOnNoMatch><tns:updateOnMatch>REPLACE_ALL</tns:updateOnMatch><tns:matchColumnName1>Mobile_Number_</tns:matchColumnName1><tns:matchColumnName2></tns:matchColumnName2><tns:matchColumnName3></tns:matchColumnName3><tns:matchOperator>AND</tns:matchOperator><tns:optinValue>I</tns:optinValue><tns:optoutValue>O</tns:optoutValue><tns:htmlValue>H</tns:htmlValue><tns:textValue>T</tns:textValue><tns:rejectRecordIfChannelEmpty></tns:rejectRecordIfChannelEmpty><tns:defaultPermissionStatus></tns:defaultPermissionStatus></tns:mergeRule></tns:mergeListMembers></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>EcDzcMqpY504CFUmPeekSEYQF0</sessionId></sessionHeader></env:Header><env:Body><tns:mergeListMembers><tns:list><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_list1</tns:objectName></tns:list><tns:recordData><tns:fieldNames>Email_Address_</tns:fieldNames><tns:fieldNames>Mobile_Number_</tns:fieldNames><tns:records><tns:fieldValues>user1@email.com</tns:fieldValues><tns:fieldValues>0000000001</tns:fieldValues></tns:records></tns:recordData><tns:mergeRule><tns:insertOnNoMatch>false</tns:insertOnNoMatch><tns:updateOnMatch>REPLACE_ALL</tns:updateOnMatch><tns:matchColumnName1>Mobile_Number_</tns:matchColumnName1><tns:matchColumnName2></tns:matchColumnName2><tns:matchColumnName3></tns:matchColumnName3><tns:matchOperator>AND</tns:matchOperator><tns:optinValue>I</tns:optinValue><tns:optoutValue>O</tns:optoutValue><tns:htmlValue>H</tns:htmlValue><tns:textValue>T</tns:textValue><tns:rejectRecordIfChannelEmpty></tns:rejectRecordIfChannelEmpty><tns:defaultPermissionStatus>OPTOUT</tns:defaultPermissionStatus></tns:mergeRule></tns:mergeListMembers></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000
13
+ - JSESSIONID=F947927F6DDACEB0F2EE11A94DD881B2.ws03-ri5
14
14
  Soapaction:
15
15
  - ! '"mergeListMembers"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '1583'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
24
- response:
25
- status:
26
- code: 500
27
- message: Internal Server Error
28
- headers:
29
- Connection:
30
- - close
31
- Content-Length:
32
- - '505'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Date:
36
- - Sat, 23 Aug 2014 00:54:41 GMT
37
- Server:
38
- - Apache
39
- Set-Cookie:
40
- - JSESSIONID=79874FB8B5104592CA8911BE54EBDCCA.ws04-ri2; Path=/webservices/;
41
- HttpOnly
42
- body:
43
- encoding: US-ASCII
44
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>UnexpectedErrorFault</faultstring><detail><UnexpectedErrorFault
45
- xmlns="urn:fault.ws.rsys.com"><exceptionCode>INVALID_SESSION_ID</exceptionCode><exceptionMessage>Session
46
- not available in the system. Please login.</exceptionMessage></UnexpectedErrorFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
47
- http_version:
48
- recorded_at: Sat, 23 Aug 2014 00:54:42 GMT
49
- - request:
50
- method: post
51
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
52
- body:
53
- encoding: US-ASCII
54
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
55
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
56
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:login><tns:username>your_responsys_username</tns:username><tns:password>your_responsys_password</tns:password></tns:login></env:Body></env:Envelope>
57
- headers:
58
- Soapaction:
59
- - ! '"login"'
60
- Content-Type:
61
- - text/xml;charset=UTF-8
62
- Content-Length:
63
- - '376'
64
- Accept:
65
- - ! '*/*'
66
- User-Agent:
67
- - Ruby
68
- response:
69
- status:
70
- code: 200
71
- message: OK
72
- headers:
73
- Content-Length:
74
- - '283'
75
- Content-Type:
76
- - text/xml; charset=UTF-8
77
- Date:
78
- - Sat, 23 Aug 2014 00:54:41 GMT
79
- Server:
80
- - Apache
81
- Set-Cookie:
82
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
83
- - JSESSIONID=4F692426F72DA7A19196FF6DBD5613A4.ws01-ri2; Path=/webservices/;
84
- HttpOnly
85
- body:
86
- encoding: US-ASCII
87
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
88
- xmlns="urn:ws.rsys.com"><result><sessionId>wbDyodR4YE8X10TuP3p7v9FzxL</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
89
- http_version:
90
- recorded_at: Sat, 23 Aug 2014 00:54:42 GMT
91
- - request:
92
- method: post
93
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
94
- body:
95
- encoding: US-ASCII
96
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
97
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
98
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>wbDyodR4YE8X10TuP3p7v9FzxL</sessionId></sessionHeader></env:Header><env:Body><tns:mergeListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:recordData><tns:fieldNames>Email_Address_</tns:fieldNames><tns:fieldNames>Mobile_Number_</tns:fieldNames><tns:fieldNames>Customer_ID_</tns:fieldNames><tns:records><tns:fieldValues>wsxxxx</tns:fieldValues><tns:fieldValues>0000000001</tns:fieldValues><tns:fieldValues></tns:fieldValues></tns:records><tns:records><tns:fieldValues></tns:fieldValues><tns:fieldValues>0000000000</tns:fieldValues><tns:fieldValues></tns:fieldValues></tns:records></tns:recordData><tns:mergeRule><tns:insertOnNoMatch>false</tns:insertOnNoMatch><tns:updateOnMatch>REPLACE_ALL</tns:updateOnMatch><tns:matchColumnName1>Mobile_Number_</tns:matchColumnName1><tns:matchColumnName2></tns:matchColumnName2><tns:matchColumnName3></tns:matchColumnName3><tns:matchOperator>AND</tns:matchOperator><tns:optinValue>I</tns:optinValue><tns:optoutValue>O</tns:optoutValue><tns:htmlValue>H</tns:htmlValue><tns:textValue>T</tns:textValue><tns:rejectRecordIfChannelEmpty></tns:rejectRecordIfChannelEmpty><tns:defaultPermissionStatus></tns:defaultPermissionStatus></tns:mergeRule></tns:mergeListMembers></env:Body></env:Envelope>
99
- headers:
100
- Cookie:
101
- - JSESSIONID=4F692426F72DA7A19196FF6DBD5613A4.ws01-ri2
102
- Soapaction:
103
- - ! '"mergeListMembers"'
104
- Content-Type:
105
- - text/xml;charset=UTF-8
106
- Content-Length:
107
- - '1583'
19
+ - '1361'
108
20
  Accept:
109
21
  - ! '*/*'
110
22
  User-Agent:
@@ -119,16 +31,16 @@ http_interactions:
119
31
  Content-Type:
120
32
  - text/xml; charset=UTF-8
121
33
  Date:
122
- - Sat, 23 Aug 2014 00:54:42 GMT
34
+ - Thu, 06 Nov 2014 07:07:40 GMT
123
35
  Server:
124
36
  - Apache
125
37
  Set-Cookie:
126
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
127
39
  body:
128
40
  encoding: US-ASCII
129
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><mergeListMembersResponse
130
- xmlns="urn:ws.rsys.com"><result><insertCount>0</insertCount><updateCount>2</updateCount><rejectedCount>0</rejectedCount><totalCount>2</totalCount><errorMessage
42
+ xmlns="urn:ws.rsys.com"><result><insertCount>0</insertCount><updateCount>1</updateCount><rejectedCount>0</rejectedCount><totalCount>1</totalCount><errorMessage
131
43
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /></result></mergeListMembersResponse></soapenv:Body></soapenv:Envelope>
132
44
  http_version:
133
- recorded_at: Sat, 23 Aug 2014 00:54:43 GMT
134
- recorded_with: VCR 2.5.0
45
+ recorded_at: Thu, 06 Nov 2014 07:07:42 GMT
46
+ recorded_with: VCR 2.9.3
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>BjvOzPmvyaHuODned5hOyAe9Eu</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:fieldList>MOBILE_NUMBER_</tns:fieldList><tns:idsToRetrieve>user@email.com</tns:idsToRetrieve><tns:idsToRetrieve>user2@email.com</tns:idsToRetrieve><tns:idsToRetrieve>user3@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>EcDzcMqpY504CFUmPeekSEYQF0</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_list1</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:fieldList>MOBILE_NUMBER_</tns:fieldList><tns:idsToRetrieve>user1@email.com</tns:idsToRetrieve><tns:idsToRetrieve>user2@email.com</tns:idsToRetrieve><tns:idsToRetrieve>user3@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - JSESSIONID=A44B3D91C016D9D8E59453E26274837A.ws04-ri2
13
+ - JSESSIONID=F947927F6DDACEB0F2EE11A94DD881B2.ws03-ri5
14
14
  Soapaction:
15
15
  - ! '"retrieveListMembers"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '844'
19
+ - '834'
20
20
  Accept:
21
21
  - ! '*/*'
22
22
  User-Agent:
@@ -27,20 +27,20 @@ http_interactions:
27
27
  message: OK
28
28
  headers:
29
29
  Content-Length:
30
- - '707'
30
+ - '703'
31
31
  Content-Type:
32
32
  - text/xml; charset=UTF-8
33
33
  Date:
34
- - Thu, 21 Aug 2014 02:04:46 GMT
34
+ - Thu, 06 Nov 2014 07:07:40 GMT
35
35
  Server:
36
36
  - Apache
37
37
  Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveListMembersResponse
42
- xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><fieldNames>MOBILE_NUMBER_</fieldNames><records><fieldValues>user@email.com</fieldValues><fieldValues>0000000001</fieldValues></records><records><fieldValues>user3@email.com</fieldValues><fieldValues
43
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /></records><records><fieldValues>user2@email.com</fieldValues><fieldValues>0000000000</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
42
+ xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><fieldNames>MOBILE_NUMBER_</fieldNames><records><fieldValues>user1@email.com</fieldValues><fieldValues>0000000001</fieldValues></records><records><fieldValues>user2@email.com</fieldValues><fieldValues
43
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /></records><records><fieldValues>user3@email.com</fieldValues><fieldValues>0000000000</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
44
44
  http_version:
45
- recorded_at: Thu, 21 Aug 2014 02:04:47 GMT
46
- recorded_with: VCR 2.5.0
45
+ recorded_at: Thu, 06 Nov 2014 07:07:42 GMT
46
+ recorded_with: VCR 2.9.3
@@ -2,109 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>NtMtC6xjc9DVKwzOJlgvS20337</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:fieldList>MOBILE_NUMBER_</tns:fieldList><tns:idsToRetrieve>user@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>EcDzcMqpY504CFUmPeekSEYQF0</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_list1</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:fieldList>MOBILE_NUMBER_</tns:fieldList><tns:idsToRetrieve>user1@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000
13
+ - JSESSIONID=F947927F6DDACEB0F2EE11A94DD881B2.ws03-ri5
14
14
  Soapaction:
15
15
  - ! '"retrieveListMembers"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '732'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
24
- response:
25
- status:
26
- code: 500
27
- message: Internal Server Error
28
- headers:
29
- Connection:
30
- - close
31
- Content-Length:
32
- - '505'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Date:
36
- - Sat, 23 Aug 2014 01:00:53 GMT
37
- Server:
38
- - Apache
39
- Set-Cookie:
40
- - JSESSIONID=D82FB437E2C7CEF845D5A1DDA8533F00.ws01-ri2; Path=/webservices/;
41
- HttpOnly
42
- body:
43
- encoding: US-ASCII
44
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>UnexpectedErrorFault</faultstring><detail><UnexpectedErrorFault
45
- xmlns="urn:fault.ws.rsys.com"><exceptionCode>INVALID_SESSION_ID</exceptionCode><exceptionMessage>Session
46
- not available in the system. Please login.</exceptionMessage></UnexpectedErrorFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
47
- http_version:
48
- recorded_at: Sat, 23 Aug 2014 01:00:54 GMT
49
- - request:
50
- method: post
51
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
52
- body:
53
- encoding: US-ASCII
54
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
55
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
56
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:login><tns:username>your_responsys_username</tns:username><tns:password>your_responsys_password</tns:password></tns:login></env:Body></env:Envelope>
57
- headers:
58
- Soapaction:
59
- - ! '"login"'
60
- Content-Type:
61
- - text/xml;charset=UTF-8
62
- Content-Length:
63
- - '376'
64
- Accept:
65
- - ! '*/*'
66
- User-Agent:
67
- - Ruby
68
- response:
69
- status:
70
- code: 200
71
- message: OK
72
- headers:
73
- Content-Length:
74
- - '283'
75
- Content-Type:
76
- - text/xml; charset=UTF-8
77
- Date:
78
- - Sat, 23 Aug 2014 01:00:53 GMT
79
- Server:
80
- - Apache
81
- Set-Cookie:
82
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
83
- - JSESSIONID=BD98FD4A1FC5E21AC200B6263FF33098.ws02-ri2; Path=/webservices/;
84
- HttpOnly
85
- body:
86
- encoding: US-ASCII
87
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
88
- xmlns="urn:ws.rsys.com"><result><sessionId>GkEaLA8VJOZoVYmvZQgWNI5nr3</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
89
- http_version:
90
- recorded_at: Sat, 23 Aug 2014 01:00:54 GMT
91
- - request:
92
- method: post
93
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
94
- body:
95
- encoding: US-ASCII
96
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
97
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
98
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>GkEaLA8VJOZoVYmvZQgWNI5nr3</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:fieldList>MOBILE_NUMBER_</tns:fieldList><tns:idsToRetrieve>user@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
99
- headers:
100
- Cookie:
101
- - JSESSIONID=BD98FD4A1FC5E21AC200B6263FF33098.ws02-ri2
102
- Soapaction:
103
- - ! '"retrieveListMembers"'
104
- Content-Type:
105
- - text/xml;charset=UTF-8
106
- Content-Length:
107
- - '732'
19
+ - '726'
108
20
  Accept:
109
21
  - ! '*/*'
110
22
  User-Agent:
@@ -119,15 +31,15 @@ http_interactions:
119
31
  Content-Type:
120
32
  - text/xml; charset=UTF-8
121
33
  Date:
122
- - Sat, 23 Aug 2014 01:00:54 GMT
34
+ - Thu, 06 Nov 2014 07:07:40 GMT
123
35
  Server:
124
36
  - Apache
125
37
  Set-Cookie:
126
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
127
39
  body:
128
40
  encoding: US-ASCII
129
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveListMembersResponse
130
- xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><fieldNames>MOBILE_NUMBER_</fieldNames><records><fieldValues>user@email.com</fieldValues><fieldValues>0000000001</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
42
+ xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><fieldNames>MOBILE_NUMBER_</fieldNames><records><fieldValues>user1@email.com</fieldValues><fieldValues>0000000001</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
131
43
  http_version:
132
- recorded_at: Sat, 23 Aug 2014 01:00:55 GMT
133
- recorded_with: VCR 2.5.0
44
+ recorded_at: Thu, 06 Nov 2014 07:07:42 GMT
45
+ recorded_with: VCR 2.9.3
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>0b1e6peYfTN4BkbUALOifGG1I5</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_list</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:idsToRetrieve>user@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>EcDzcMqpY504CFUmPeekSEYQF0</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveListMembers><tns:list><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_list1</tns:objectName></tns:list><tns:queryColumn>EMAIL_ADDRESS</tns:queryColumn><tns:fieldList>EMAIL_ADDRESS_</tns:fieldList><tns:idsToRetrieve>user1@email.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - JSESSIONID=931410626D4BEF3F111F2D2A1125865A.ws02-ri2
13
+ - JSESSIONID=F947927F6DDACEB0F2EE11A94DD881B2.ws03-ri5
14
14
  Soapaction:
15
15
  - ! '"retrieveListMembers"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '687'
19
+ - '681'
20
20
  Accept:
21
21
  - ! '*/*'
22
22
  User-Agent:
@@ -31,15 +31,15 @@ http_interactions:
31
31
  Content-Type:
32
32
  - text/xml; charset=UTF-8
33
33
  Date:
34
- - Sat, 23 Aug 2014 01:51:43 GMT
34
+ - Thu, 06 Nov 2014 07:07:40 GMT
35
35
  Server:
36
36
  - Apache
37
37
  Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3591014154.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveListMembersResponse
42
- xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><records><fieldValues>user@email.com</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
42
+ xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_ADDRESS_</fieldNames><records><fieldValues>user1@email.com</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
43
43
  http_version:
44
- recorded_at: Sat, 23 Aug 2014 01:51:44 GMT
45
- recorded_with: VCR 2.5.0
44
+ recorded_at: Thu, 06 Nov 2014 07:07:42 GMT
45
+ recorded_with: VCR 2.9.3
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>YnceLODfqtw8PZNx7KofAGcyVT</sessionId></sessionHeader></env:Header><env:Body><tns:mergeIntoProfileExtension><tns:profileExtension><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_profile_extension</tns:objectName></tns:profileExtension><tns:recordData><tns:fieldNames>EMAIL_ADDRESS_</tns:fieldNames><tns:fieldNames>MONTHLY_PURCH</tns:fieldNames><tns:records><tns:fieldValues>user2@email.com</tns:fieldValues><tns:fieldValues>3000</tns:fieldValues></tns:records></tns:recordData><tns:matchColumn>EMAIL_ADDRESS</tns:matchColumn><tns:insertOnNoMatch>true</tns:insertOnNoMatch><tns:updateOnMatch>REPLACE_ALL</tns:updateOnMatch></tns:mergeIntoProfileExtension></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>Umup1zvQo5WaiMnjCDYmjVkIB9</sessionId></sessionHeader></env:Header><env:Body><tns:mergeIntoProfileExtension><tns:profileExtension><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_pet1</tns:objectName></tns:profileExtension><tns:recordData><tns:fieldNames>RIID_</tns:fieldNames><tns:fieldNames>MONTHLY_PURCH</tns:fieldNames><tns:records><tns:fieldValues>48614925</tns:fieldValues><tns:fieldValues>300</tns:fieldValues></tns:records></tns:recordData><tns:matchColumn>RIID</tns:matchColumn><tns:insertOnNoMatch>true</tns:insertOnNoMatch><tns:updateOnMatch>REPLACE_ALL</tns:updateOnMatch></tns:mergeIntoProfileExtension></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - JSESSIONID=2305B2D668EB23F2BC55A43DC17EC7BF.ws04-ri2
13
+ - JSESSIONID=F8A25AFB55405F63A61248977DF25F9F.ws01-ri5
14
14
  Soapaction:
15
15
  - ! '"mergeIntoProfileExtension"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '977'
19
+ - '930'
20
20
  Accept:
21
21
  - ! '*/*'
22
22
  User-Agent:
@@ -27,20 +27,20 @@ http_interactions:
27
27
  message: OK
28
28
  headers:
29
29
  Content-Length:
30
- - '407'
30
+ - '409'
31
31
  Content-Type:
32
32
  - text/xml; charset=UTF-8
33
33
  Date:
34
- - Wed, 20 Aug 2014 20:54:25 GMT
34
+ - Thu, 06 Nov 2014 07:26:50 GMT
35
35
  Server:
36
36
  - Apache
37
37
  Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3607791370.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><mergeIntoProfileExtensionResponse
42
- xmlns="urn:ws.rsys.com"><recipientResult><recipientId>398429</recipientId><errorMessage
42
+ xmlns="urn:ws.rsys.com"><recipientResult><recipientId>48614925</recipientId><errorMessage
43
43
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /></recipientResult></mergeIntoProfileExtensionResponse></soapenv:Body></soapenv:Envelope>
44
44
  http_version:
45
- recorded_at: Wed, 20 Aug 2014 20:54:25 GMT
46
- recorded_with: VCR 2.5.0
45
+ recorded_at: Thu, 06 Nov 2014 07:26:52 GMT
46
+ recorded_with: VCR 2.9.3
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
5
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
9
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
10
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>YnceLODfqtw8PZNx7KofAGcyVT</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveProfileExtensionRecords><tns:profileExtension><tns:folderName>another_test_folder</tns:folderName><tns:objectName>test_profile_extension</tns:objectName></tns:profileExtension><tns:queryColumn>RIID</tns:queryColumn><tns:fieldList>RIID_</tns:fieldList><tns:fieldList>EMAIL_ADDRESS</tns:fieldList><tns:idsToRetrieve>398426</tns:idsToRetrieve></tns:retrieveProfileExtensionRecords></env:Body></env:Envelope>
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>Umup1zvQo5WaiMnjCDYmjVkIB9</sessionId></sessionHeader></env:Header><env:Body><tns:retrieveProfileExtensionRecords><tns:profileExtension><tns:folderName>rspec_tests</tns:folderName><tns:objectName>rspec_pet1</tns:objectName></tns:profileExtension><tns:queryColumn>RIID</tns:queryColumn><tns:fieldList>RIID_</tns:fieldList><tns:fieldList>MONTHLY_PURCH</tns:fieldList><tns:idsToRetrieve>48614925</tns:idsToRetrieve></tns:retrieveProfileExtensionRecords></env:Body></env:Envelope>
11
11
  headers:
12
12
  Cookie:
13
- - JSESSIONID=2305B2D668EB23F2BC55A43DC17EC7BF.ws04-ri2
13
+ - JSESSIONID=F8A25AFB55405F63A61248977DF25F9F.ws01-ri5
14
14
  Soapaction:
15
15
  - ! '"retrieveProfileExtensionRecords"'
16
16
  Content-Type:
17
17
  - text/xml;charset=UTF-8
18
18
  Content-Length:
19
- - '765'
19
+ - '747'
20
20
  Accept:
21
21
  - ! '*/*'
22
22
  User-Agent:
@@ -27,19 +27,19 @@ http_interactions:
27
27
  message: OK
28
28
  headers:
29
29
  Content-Length:
30
- - '473'
30
+ - '463'
31
31
  Content-Type:
32
32
  - text/xml; charset=UTF-8
33
33
  Date:
34
- - Wed, 20 Aug 2014 20:54:25 GMT
34
+ - Thu, 06 Nov 2014 07:26:50 GMT
35
35
  Server:
36
36
  - Apache
37
37
  Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3607791370.10787.0000; path=/
38
+ - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveProfileExtensionRecordsResponse
42
- xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>RIID_</fieldNames><fieldNames>EMAIL_ADDRESS</fieldNames><records><fieldValues>398426</fieldValues><fieldValues>user@email.com</fieldValues></records></recordData></result></retrieveProfileExtensionRecordsResponse></soapenv:Body></soapenv:Envelope>
42
+ xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>RIID_</fieldNames><fieldNames>MONTHLY_PURCH</fieldNames><records><fieldValues>48614925</fieldValues><fieldValues>300</fieldValues></records></recordData></result></retrieveProfileExtensionRecordsResponse></soapenv:Body></soapenv:Envelope>
43
43
  http_version:
44
- recorded_at: Wed, 20 Aug 2014 20:54:25 GMT
45
- recorded_with: VCR 2.5.0
44
+ recorded_at: Thu, 06 Nov 2014 07:26:52 GMT
45
+ recorded_with: VCR 2.9.3