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
@@ -1,45 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
6
- body:
7
- encoding: US-ASCII
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
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:createTable><tns:table><tns:folderName>another_test_folder</tns:folderName><tns:objectName>table_1408568062</tns:objectName></tns:table><tns:fields><tns:fieldName>field1</tns:fieldName><tns:fieldType>STR500</tns:fieldType><tns:custom>false</tns:custom><tns:dataExtractionKey>false</tns:dataExtractionKey></tns:fields><tns:fields><tns:fieldName>field2</tns:fieldName><tns:fieldType>NUMBER</tns:fieldType><tns:custom>false</tns:custom><tns:dataExtractionKey>false</tns:dataExtractionKey></tns:fields><tns:fields><tns:fieldName>field3</tns:fieldName><tns:fieldType>TIMESTAMP</tns:fieldType><tns:custom>false</tns:custom><tns:dataExtractionKey>false</tns:dataExtractionKey></tns:fields></tns:createTable></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=2305B2D668EB23F2BC55A43DC17EC7BF.ws04-ri2
14
- Soapaction:
15
- - ! '"createTable"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '1079'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Content-Length:
30
- - '250'
31
- Content-Type:
32
- - text/xml; charset=UTF-8
33
- Date:
34
- - Wed, 20 Aug 2014 20:54:22 GMT
35
- Server:
36
- - Apache
37
- Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3607791370.10787.0000; path=/
39
- body:
40
- encoding: US-ASCII
41
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><createTableResponse
42
- xmlns="urn:ws.rsys.com"><result>true</result></createTableResponse></soapenv:Body></soapenv:Envelope>
43
- http_version:
44
- recorded_at: Wed, 20 Aug 2014 20:54:23 GMT
45
- recorded_with: VCR 2.5.0
@@ -1,45 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://wsxxxx.responsys.net/webservices/services/ResponsysWSService
6
- body:
7
- encoding: US-ASCII
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
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:deleteTable><tns:table><tns:folderName>another_test_folder</tns:folderName><tns:objectName>table_1408568062</tns:objectName></tns:table></tns:deleteTable></env:Body></env:Envelope>
11
- headers:
12
- Cookie:
13
- - JSESSIONID=2305B2D668EB23F2BC55A43DC17EC7BF.ws04-ri2
14
- Soapaction:
15
- - ! '"deleteTable"'
16
- Content-Type:
17
- - text/xml;charset=UTF-8
18
- Content-Length:
19
- - '533'
20
- Accept:
21
- - ! '*/*'
22
- User-Agent:
23
- - Ruby
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Content-Length:
30
- - '250'
31
- Content-Type:
32
- - text/xml; charset=UTF-8
33
- Date:
34
- - Wed, 20 Aug 2014 20:54:22 GMT
35
- Server:
36
- - Apache
37
- Set-Cookie:
38
- - BIGipServerapigee.responsys.net_9002=3607791370.10787.0000; path=/
39
- body:
40
- encoding: US-ASCII
41
- string: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><deleteTableResponse
42
- xmlns="urn:ws.rsys.com"><result>true</result></deleteTableResponse></soapenv:Body></soapenv:Envelope>
43
- http_version:
44
- recorded_at: Wed, 20 Aug 2014 20:54:23 GMT
45
- recorded_with: VCR 2.5.0