responsys-api 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +5 -13
  2. data/.travis.yml +7 -2
  3. data/lib/responsys/api/all.rb +2 -2
  4. data/lib/responsys/api/authentication.rb +45 -0
  5. data/lib/responsys/api/client.rb +21 -50
  6. data/lib/responsys/api/session.rb +22 -35
  7. data/lib/responsys/api/session_pool.rb +32 -0
  8. data/lib/responsys/configuration.rb +7 -2
  9. data/lib/responsys/i18n/en.yml +35 -0
  10. data/lib/responsys_api.rb +7 -1
  11. data/responsys-api.gemspec +3 -2
  12. data/spec/api/campaign_spec.rb +5 -5
  13. data/spec/api/client_spec.rb +7 -69
  14. data/spec/api/list_spec.rb +6 -6
  15. data/spec/api/session_spec.rb +50 -0
  16. data/spec/api/table_spec.rb +12 -12
  17. data/spec/api_credentials.sample.yml +1 -1
  18. data/spec/fixtures/vcr_cassettes/api/campaign/trigger_custom_event_1.yml +45 -29
  19. data/spec/fixtures/vcr_cassettes/api/campaign/trigger_custom_event_2.yml +45 -29
  20. data/spec/fixtures/vcr_cassettes/api/campaign/trigger_message_1.yml +926 -29
  21. data/spec/fixtures/vcr_cassettes/api/campaign/trigger_message_2.yml +45 -29
  22. data/spec/fixtures/vcr_cassettes/api/client/expired_session.yml +1 -48
  23. data/spec/fixtures/vcr_cassettes/api/list/merge.yml +46 -28
  24. data/spec/fixtures/vcr_cassettes/api/list/retrieve.yml +927 -28
  25. data/spec/fixtures/vcr_cassettes/api/list/retrieve_single.yml +46 -28
  26. data/spec/fixtures/vcr_cassettes/api/list/retrieve_single_single.yml +46 -28
  27. data/spec/fixtures/vcr_cassettes/api/profile_extension/delete_profile_extension_records.yml +65 -0
  28. data/spec/fixtures/vcr_cassettes/api/profile_extension/merge_profile_extension_records.yml +46 -28
  29. data/spec/fixtures/vcr_cassettes/api/profile_extension/retrieve_profile_extension_records.yml +46 -28
  30. data/spec/fixtures/vcr_cassettes/api/table/create_with_pk.yml +927 -28
  31. data/spec/fixtures/vcr_cassettes/api/table/delete_with_pk.yml +46 -28
  32. data/spec/fixtures/vcr_cassettes/member/present1.yml +927 -28
  33. data/spec/fixtures/vcr_cassettes/member/present2.yml +46 -28
  34. data/spec/fixtures/vcr_cassettes/member/present3.yml +46 -30
  35. data/spec/fixtures/vcr_cassettes/member/present4.yml +46 -30
  36. data/spec/fixtures/vcr_cassettes/member/present5.yml +46 -30
  37. data/spec/fixtures/vcr_cassettes/member/retrieve_profile_extension.yml +92 -56
  38. data/spec/spec_helper.rb +9 -19
  39. metadata +43 -23
@@ -4,42 +4,60 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
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>W1Qlwgd2Ysd7WOrfV45ddioFyh</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>48614925</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
14
- Soapaction:
15
- - ! '"retrieveListMembers"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '675'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
10
+ 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>
11
+ headers:
24
12
  response:
25
13
  status:
26
14
  code: 200
27
15
  message: OK
28
- headers:
29
- Content-Length:
30
- - '383'
31
- Content-Type:
32
- - text/xml; charset=UTF-8
33
- Date:
34
- - Thu, 06 Nov 2014 07:37:16 GMT
35
- Server:
36
- - Apache
37
- Set-Cookie:
38
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
16
+ headers:
39
17
  body:
40
- encoding: US-ASCII
18
+ encoding: UTF-8
19
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
20
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
21
+ http_version:
22
+ recorded_at: Sat, 29 Nov 2014 21:39:58 GMT
23
+ - request:
24
+ method: post
25
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
26
+ body:
27
+ encoding: UTF-8
28
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
29
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
30
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>48614925</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
31
+ headers:
32
+ response:
33
+ status:
34
+ code: 200
35
+ message: OK
36
+ headers:
37
+ body:
38
+ encoding: UTF-8
41
39
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveListMembersResponse
42
40
  xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>EMAIL_PERMISSION_STATUS_</fieldNames><records><fieldValues>I</fieldValues></records></recordData></result></retrieveListMembersResponse></soapenv:Body></soapenv:Envelope>
43
41
  http_version:
44
- recorded_at: Thu, 06 Nov 2014 07:37:19 GMT
42
+ recorded_at: Sat, 29 Nov 2014 21:39:59 GMT
43
+ - request:
44
+ method: post
45
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
46
+ body:
47
+ encoding: UTF-8
48
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
50
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
51
+ headers:
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ body:
58
+ encoding: UTF-8
59
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
60
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
61
+ http_version:
62
+ recorded_at: Sat, 29 Nov 2014 21:39:59 GMT
45
63
  recorded_with: VCR 2.9.3
@@ -4,45 +4,61 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
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>W1Qlwgd2Ysd7WOrfV45ddioFyh</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_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>thisemailis@notpresent.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
14
- Soapaction:
15
- - ! '"retrieveListMembers"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '702'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
10
+ 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>
11
+ headers:
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ body:
18
+ encoding: UTF-8
19
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
20
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
21
+ http_version:
22
+ recorded_at: Sat, 29 Nov 2014 21:39:59 GMT
23
+ - request:
24
+ method: post
25
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
26
+ body:
27
+ encoding: UTF-8
28
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
29
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
30
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>thisemailis@notpresent.com</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
31
+ headers:
24
32
  response:
25
33
  status:
26
34
  code: 500
27
35
  message: Internal Server Error
28
- headers:
29
- Connection:
30
- - close
31
- Content-Length:
32
- - '462'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Date:
36
- - Thu, 06 Nov 2014 07:37:17 GMT
37
- Server:
38
- - Apache
39
- Set-Cookie:
40
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
36
+ headers:
41
37
  body:
42
- encoding: US-ASCII
38
+ encoding: UTF-8
43
39
  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>ListFault</faultstring><detail><ListFault
44
40
  xmlns="urn:fault.ws.rsys.com"><exceptionCode>RECORD_NOT_FOUND</exceptionCode><exceptionMessage>No
45
41
  records found in the list for given ids</exceptionMessage></ListFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
46
42
  http_version:
47
- recorded_at: Thu, 06 Nov 2014 07:37:19 GMT
43
+ recorded_at: Sat, 29 Nov 2014 21:39:59 GMT
44
+ - request:
45
+ method: post
46
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
47
+ body:
48
+ encoding: UTF-8
49
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
50
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
51
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
52
+ headers:
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ body:
59
+ encoding: UTF-8
60
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
61
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
62
+ http_version:
63
+ recorded_at: Sat, 29 Nov 2014 21:40:00 GMT
48
64
  recorded_with: VCR 2.9.3
@@ -4,45 +4,61 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
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>W1Qlwgd2Ysd7WOrfV45ddioFyh</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>000001</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
14
- Soapaction:
15
- - ! '"retrieveListMembers"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '673'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
10
+ 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>
11
+ headers:
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ body:
18
+ encoding: UTF-8
19
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
20
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
21
+ http_version:
22
+ recorded_at: Sat, 29 Nov 2014 21:40:00 GMT
23
+ - request:
24
+ method: post
25
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
26
+ body:
27
+ encoding: UTF-8
28
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
29
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
30
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>000001</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
31
+ headers:
24
32
  response:
25
33
  status:
26
34
  code: 500
27
35
  message: Internal Server Error
28
- headers:
29
- Connection:
30
- - close
31
- Content-Length:
32
- - '462'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Date:
36
- - Thu, 06 Nov 2014 07:37:17 GMT
37
- Server:
38
- - Apache
39
- Set-Cookie:
40
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
36
+ headers:
41
37
  body:
42
- encoding: US-ASCII
38
+ encoding: UTF-8
43
39
  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>ListFault</faultstring><detail><ListFault
44
40
  xmlns="urn:fault.ws.rsys.com"><exceptionCode>RECORD_NOT_FOUND</exceptionCode><exceptionMessage>No
45
41
  records found in the list for given ids</exceptionMessage></ListFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
46
42
  http_version:
47
- recorded_at: Thu, 06 Nov 2014 07:37:19 GMT
43
+ recorded_at: Sat, 29 Nov 2014 21:40:00 GMT
44
+ - request:
45
+ method: post
46
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
47
+ body:
48
+ encoding: UTF-8
49
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
50
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
51
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
52
+ headers:
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ body:
59
+ encoding: UTF-8
60
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
61
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
62
+ http_version:
63
+ recorded_at: Sat, 29 Nov 2014 21:40:00 GMT
48
64
  recorded_with: VCR 2.9.3
@@ -4,45 +4,61 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
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>W1Qlwgd2Ysd7WOrfV45ddioFyh</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>000001</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
14
- Soapaction:
15
- - ! '"retrieveListMembers"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '673'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
10
+ 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>
11
+ headers:
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ body:
18
+ encoding: UTF-8
19
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
20
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
21
+ http_version:
22
+ recorded_at: Sat, 29 Nov 2014 21:40:00 GMT
23
+ - request:
24
+ method: post
25
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
26
+ body:
27
+ encoding: UTF-8
28
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
29
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
30
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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>RIID</tns:queryColumn><tns:fieldList>EMAIL_PERMISSION_STATUS_</tns:fieldList><tns:idsToRetrieve>000001</tns:idsToRetrieve></tns:retrieveListMembers></env:Body></env:Envelope>
31
+ headers:
24
32
  response:
25
33
  status:
26
34
  code: 500
27
35
  message: Internal Server Error
28
- headers:
29
- Connection:
30
- - close
31
- Content-Length:
32
- - '462'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Date:
36
- - Thu, 06 Nov 2014 07:37:17 GMT
37
- Server:
38
- - Apache
39
- Set-Cookie:
40
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
36
+ headers:
41
37
  body:
42
- encoding: US-ASCII
38
+ encoding: UTF-8
43
39
  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>ListFault</faultstring><detail><ListFault
44
40
  xmlns="urn:fault.ws.rsys.com"><exceptionCode>RECORD_NOT_FOUND</exceptionCode><exceptionMessage>No
45
41
  records found in the list for given ids</exceptionMessage></ListFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
46
42
  http_version:
47
- recorded_at: Thu, 06 Nov 2014 07:37:19 GMT
43
+ recorded_at: Sat, 29 Nov 2014 21:40:01 GMT
44
+ - request:
45
+ method: post
46
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
47
+ body:
48
+ encoding: UTF-8
49
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
50
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
51
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
52
+ headers:
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ body:
59
+ encoding: UTF-8
60
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
61
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
62
+ http_version:
63
+ recorded_at: Sat, 29 Nov 2014 21:40:01 GMT
48
64
  recorded_with: VCR 2.9.3
@@ -4,84 +4,120 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
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>W1Qlwgd2Ysd7WOrfV45ddioFyh</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:idsToRetrieve>48614925</tns:idsToRetrieve></tns:retrieveProfileExtensionRecords></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
14
- Soapaction:
15
- - ! '"retrieveProfileExtensionRecords"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '703'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
10
+ 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>
11
+ headers:
24
12
  response:
25
13
  status:
26
14
  code: 200
27
15
  message: OK
28
- headers:
29
- Content-Length:
30
- - '395'
31
- Content-Type:
32
- - text/xml; charset=UTF-8
33
- Date:
34
- - Thu, 06 Nov 2014 07:37:18 GMT
35
- Server:
36
- - Apache
37
- Set-Cookie:
38
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
16
+ headers:
39
17
  body:
40
- encoding: US-ASCII
18
+ encoding: UTF-8
19
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
20
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
21
+ http_version:
22
+ recorded_at: Sat, 29 Nov 2014 21:40:01 GMT
23
+ - request:
24
+ method: post
25
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
26
+ body:
27
+ encoding: UTF-8
28
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
29
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
30
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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:idsToRetrieve>48614925</tns:idsToRetrieve></tns:retrieveProfileExtensionRecords></env:Body></env:Envelope>
31
+ headers:
32
+ response:
33
+ status:
34
+ code: 200
35
+ message: OK
36
+ headers:
37
+ body:
38
+ encoding: UTF-8
41
39
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveProfileExtensionRecordsResponse
42
40
  xmlns="urn:ws.rsys.com"><result><recordData><fieldNames>RIID_</fieldNames><records><fieldValues>48614925</fieldValues></records></recordData></result></retrieveProfileExtensionRecordsResponse></soapenv:Body></soapenv:Envelope>
43
41
  http_version:
44
- recorded_at: Thu, 06 Nov 2014 07:37:20 GMT
42
+ recorded_at: Sat, 29 Nov 2014 21:40:01 GMT
43
+ - request:
44
+ method: post
45
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
46
+ body:
47
+ encoding: UTF-8
48
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
50
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
51
+ headers:
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ body:
58
+ encoding: UTF-8
59
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
60
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
61
+ http_version:
62
+ recorded_at: Sat, 29 Nov 2014 21:40:01 GMT
45
63
  - request:
46
64
  method: post
47
65
  uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
48
66
  body:
49
- encoding: US-ASCII
67
+ encoding: UTF-8
50
68
  string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
51
69
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
52
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>W1Qlwgd2Ysd7WOrfV45ddioFyh</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>
53
- headers:
54
- Cookie:
55
- - JSESSIONID=77DC067BAF16CCB4C50C44F50A95AE96.ws02-ri5
56
- Soapaction:
57
- - ! '"retrieveProfileExtensionRecords"'
58
- Content-Type:
59
- - text/xml;charset=UTF-8
60
- Content-Length:
61
- - '747'
62
- Accept:
63
- - ! '*/*'
64
- User-Agent:
65
- - Ruby
70
+ 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>
71
+ headers:
66
72
  response:
67
73
  status:
68
74
  code: 200
69
75
  message: OK
70
- headers:
71
- Content-Length:
72
- - '463'
73
- Content-Type:
74
- - text/xml; charset=UTF-8
75
- Date:
76
- - Thu, 06 Nov 2014 07:37:18 GMT
77
- Server:
78
- - Apache
79
- Set-Cookie:
80
- - BIGipServerDC2-APIGEE-I5-9051-SSL=3600669706.23331.0000; path=/
76
+ headers:
81
77
  body:
82
- encoding: US-ASCII
78
+ encoding: UTF-8
79
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><loginResponse
80
+ xmlns="urn:ws.rsys.com"><result><sessionId>DEAR_SESSION_ID</sessionId></result></loginResponse></soapenv:Body></soapenv:Envelope>
81
+ http_version:
82
+ recorded_at: Sat, 29 Nov 2014 21:40:02 GMT
83
+ - request:
84
+ method: post
85
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
86
+ body:
87
+ encoding: UTF-8
88
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
89
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
90
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</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>
91
+ headers:
92
+ response:
93
+ status:
94
+ code: 200
95
+ message: OK
96
+ headers:
97
+ body:
98
+ encoding: UTF-8
83
99
  string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><retrieveProfileExtensionRecordsResponse
84
100
  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>
85
101
  http_version:
86
- recorded_at: Thu, 06 Nov 2014 07:37:20 GMT
102
+ recorded_at: Sat, 29 Nov 2014 21:40:02 GMT
103
+ - request:
104
+ method: post
105
+ uri: https://ws5.responsys.net/webservices/services/ResponsysWSService
106
+ body:
107
+ encoding: UTF-8
108
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
109
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:ws.rsys.com"
110
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><sessionHeader><sessionId>DEAR_SESSION_ID</sessionId></sessionHeader></env:Header><env:Body><tns:logout></tns:logout></env:Body></env:Envelope>
111
+ headers:
112
+ response:
113
+ status:
114
+ code: 200
115
+ message: OK
116
+ headers:
117
+ body:
118
+ encoding: UTF-8
119
+ string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><logoutResponse
120
+ xmlns="urn:ws.rsys.com"><result>true</result></logoutResponse></soapenv:Body></soapenv:Envelope>
121
+ http_version:
122
+ recorded_at: Sat, 29 Nov 2014 21:40:02 GMT
87
123
  recorded_with: VCR 2.9.3