theodi/odi-metrics-tasks

View on GitHub
fixtures/vcr_cassettes/Create_opportunities_and_tags_against_organisations_in_CapsuleCRM/attach_membership_tag_to_existing_organisation.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=ACME%20widgets%20Inc.
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:33 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/organisation
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<organisation>\n
        \ <about nil=\"true\"/>\n  <name>ACME widgets Inc.</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:34 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977
      Content-Length:
      - 0
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=ACME%20widgets%20Inc.
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:34 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '369'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><parties size="1"><organisation><id>67667977</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1410794109/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2014-09-17T10:47:32Z</createdOn><updatedOn>2014-09-17T10:47:32Z</updatedOn><name>ACME
        widgets Inc.</name></organisation></parties>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=ACME%20widgets%20Inc.
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:35 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '369'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><parties size="1"><organisation><id>67667977</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1410794109/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2014-09-17T10:47:32Z</createdOn><updatedOn>2014-09-17T10:47:32Z</updatedOn><name>ACME
        widgets Inc.</name></organisation></parties>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<opportunity>\n
        \ <name>Membership at supporter level</name>\n  <currency>GBP</currency>\n
        \ <value type=\"integer\">60</value>\n  <milestone>Invoiced</milestone>\n
        \ <probability type=\"integer\">100</probability>\n
        \ <description>Membership #: AB1234YZ</description>\n  <duration type=\"integer\">12</duration>\n
        \ <durationBasis>MONTH</durationBasis>\n  <expectedCloseDate type=\"date\">2013-01-01</expectedCloseDate>\n
        \ <owner><CAPSULECRM_DEFAULT_OWNER></owner>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:35 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/2553724
      Content-Length:
      - 0
      X-Pad:
      - avoid browser bug
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/2553724/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Type</label>\n    <text>Membership</text>\n    <tag
        nil=\"true\"/>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n  </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:36 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '178'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="1"><customField><id>3495039</id><label>Type</label><text>Membership</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/tag/Membership
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<tags>\n
        \ <tag>\n    <name>Membership</name>\n  </tag>\n</tags>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:36 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/tag/Membership
      Content-Length:
      - 0
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Level</label>\n    <text>supporter</text>\n    <tag>Membership</tag>\n
        \   <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n  </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:37 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - 200
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="1"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Supporter Level</label>\n    <text>Supporter</text>\n
        \   <tag>Membership</tag>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n
        \ </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:37 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '317'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="2"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>ID</label>\n    <text>AB1234YZ</text>\n    <tag>Membership</tag>\n
        \   <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n  </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:38 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - 420
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="3"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Joined</label>\n    <text nil=\"true\"/>\n    <tag>Membership</tag>\n
        \   <date type=\"date\">2013-01-01</date>\n
        \   <boolean nil=\"true\"/>\n  </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:38 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '539'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="4"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Email</label>\n    <text>turkleton@acme.com</text>\n
        \   <tag>Membership</tag>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n
        \ </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:39 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '655'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="5"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField><customField><id>66777025</id><tag>Membership</tag><label>Email</label><text>turkleton@acme.com</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Size</label>\n    <text>&lt;10</text>\n
        \   <tag>Membership</tag>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n
        \ </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:39 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '758'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="6"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField><customField><id>66777025</id><tag>Membership</tag><label>Email</label><text>turkleton@acme.com</text></customField><customField><id>66777026</id><tag>Membership</tag><label>Size</label><text>&lt;10</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Sector</label>\n    <text>Healthcare</text>\n
        \   <tag>Membership</tag>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n
        \ </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:40
        GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '867'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="7"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField><customField><id>66777025</id><tag>Membership</tag><label>Email</label><text>turkleton@acme.com</text></customField><customField><id>66777026</id><tag>Membership</tag><label>Size</label><text>&lt;10</text></customField><customField><id>66777027</id><tag>Membership</tag><label>Sector</label><text>Healthcare</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfields
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" enc<METRICS_API_USERNAME>ng=\"UTF-8\"?>\n<customFields>\n
        \ <customField>\n    <label>Company Number</label>\n    <text>08030289</text>\n
        \   <tag nil=\"true\"/>\n    <date nil=\"true\"/>\n    <boolean nil=\"true\"/>\n
        \ </customField>\n</customFields>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:40
        GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '961'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="8"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField><customField><id>66777025</id><tag>Membership</tag><label>Email</label><text>turkleton@acme.com</text></customField><customField><id>66777026</id><tag>Membership</tag><label>Size</label><text>&lt;10</text></customField><customField><id>66777027</id><tag>Membership</tag><label>Sector</label><text>Healthcare</text></customField><customField><id>66777028</id><label>Company
        Number</label><text>08030289</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=ACME%20widgets%20Inc.
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:41 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '369'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><parties size="1"><organisation><id>67667977</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1410794109/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2014-09-17T10:47:32Z</createdOn><updatedOn>2014-09-17T10:47:39Z</updatedOn><name>ACME
        widgets Inc.</name></organisation></parties>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/tag
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:41 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '126'
      Connection:
      - close
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><tags size="1"><tag><id>796299</id><name>Membership</name></tag></tags>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977/customfield
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:42 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - '961'
      Content-Type:
      - ! '*/*;charset=UTF-8'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" enc<METRICS_API_USERNAME>ng="UTF-8"
        standalone="yes"?><customFields size="8"><customField><id>66777021</id><tag>Membership</tag><label>Level</label><text>supporter</text></customField><customField><id>66777022</id><tag>Membership</tag><label>Supporter
        Level</label><text>Supporter</text></customField><customField><id>66777023</id><tag>Membership</tag><label>ID</label><text>AB1234YZ</text></customField><customField><id>66777024</id><tag>Membership</tag><label>Joined</label><date>2013-01-01T00:00:00Z</date></customField><customField><id>66777025</id><tag>Membership</tag><label>Email</label><text>turkleton@acme.com</text></customField><customField><id>66777026</id><tag>Membership</tag><label>Size</label><text>&lt;10</text></customField><customField><id>66777027</id><tag>Membership</tag><label>Sector</label><text>Healthcare</text></customField><customField><id>66777028</id><label>Company
        Number</label><text>08030289</text></customField></customFields>
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/67667977
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Wed, 17 Sep 2014 10:47:42 GMT
      Server:
      - Apache
      X-Frame-Options:
      - DENY
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10
        GMT; Path=/
      Content-Length:
      - 0
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Tue, 01 Jan 2013 14:35:00 GMT
recorded_with: VCR 2.8.0