theodi/odi-metrics-tasks

View on GitHub
fixtures/vcr_cassettes/Generate_commercial_metrics/Count_old_opportunities_on_capsule.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20A
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:57 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company A</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:57 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823363
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20A
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:58 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823363</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:11Z</createdOn><updatedOn>2013-12-13T15:43:11Z</updatedOn><name>company
        A</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823363/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:58 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823363/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Invoiced</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:59 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848974
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848974
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">60000</value>\n  <duration type=\"integer\">1</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:41:59 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '514'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848974</id><name>Membership</name><partyId>52823363</partyId><currency>GBP</currency><value>60000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:12Z</createdOn><updatedOn>2013-12-13T15:43:13.476Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848974
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2013-03-23</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:00 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '573'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848974</id><name>Membership</name><partyId>52823363</partyId><currency>GBP</currency><value>60000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><expectedCloseDate>2013-03-23T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:12Z</createdOn><updatedOn>2013-12-13T15:43:14.042Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20B
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:00 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company B</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:01 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823364
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20B
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:01 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823364</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:14Z</createdOn><updatedOn>2013-12-13T15:43:14Z</updatedOn><name>company
        B</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823364/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:02 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823364/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Invoiced</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:02 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848975
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848975
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">40000</value>\n  <duration type=\"integer\">2</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:03 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '514'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848975</id><name>Membership</name><partyId>52823364</partyId><currency>GBP</currency><value>40000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:16Z</createdOn><updatedOn>2013-12-13T15:43:17.018Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848975
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2012-11-03</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:03 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '573'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848975</id><name>Membership</name><partyId>52823364</partyId><currency>GBP</currency><value>40000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2012-11-03T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:16Z</createdOn><updatedOn>2013-12-13T15:43:17.463Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20C
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:04 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company C</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:04 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823365
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20C
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:05 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823365</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:18Z</createdOn><updatedOn>2013-12-13T15:43:18Z</updatedOn><name>company
        C</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823365/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:05 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823365/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Proposal</milestone>\n  <probability type=\"integer\">50</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:06 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848976
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848976
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">50000</value>\n  <duration type=\"integer\">3</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:06 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '458'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848976</id><name>Membership</name><partyId>52823365</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><milestoneId>211636</milestoneId><milestone>Proposal</milestone><probability>50</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:19Z</createdOn><updatedOn>2013-12-13T15:43:20.472Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848976
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2013-10-19</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:07 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '517'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848976</id><name>Membership</name><partyId>52823365</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2013-10-19T00:00:00Z</expectedCloseDate><milestoneId>211636</milestoneId><milestone>Proposal</milestone><probability>50</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:19Z</createdOn><updatedOn>2013-12-13T15:43:21.001Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20D
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:07 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company D</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:08 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823367
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20D
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:08 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823367</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:21Z</createdOn><updatedOn>2013-12-13T15:43:21Z</updatedOn><name>company
        D</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823367/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:09 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823367/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Contract</milestone>\n  <probability type=\"integer\">70</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:09 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848977
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848977
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">30000</value>\n  <duration type=\"integer\">3</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:10 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '458'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848977</id><name>Membership</name><partyId>52823367</partyId><currency>GBP</currency><value>30000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><milestoneId>211637</milestoneId><milestone>Contract</milestone><probability>70</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:23Z</createdOn><updatedOn>2013-12-13T15:43:24.027Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848977
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2013-08-10</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:10 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '517'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848977</id><name>Membership</name><partyId>52823367</partyId><currency>GBP</currency><value>30000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2013-08-10T00:00:00Z</expectedCloseDate><milestoneId>211637</milestoneId><milestone>Contract</milestone><probability>70</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:23Z</createdOn><updatedOn>2013-12-13T15:43:24.508Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20E
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:11 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company E</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:11 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823368
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20E
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:12 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823368</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:25Z</createdOn><updatedOn>2013-12-13T15:43:25Z</updatedOn><name>company
        E</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823368/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:12 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823368/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Lost</milestone>\n  <probability type=\"integer\">0</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:13 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848978
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848978
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">50000</value>\n  <duration type=\"integer\">2</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:13 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '508'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848978</id><name>Membership</name><partyId>52823368</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>211640</milestoneId><milestone>Lost</milestone><probability>0</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:27Z</createdOn><updatedOn>2013-12-13T15:43:27.648Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848978
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2013-06-22</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:14 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '567'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848978</id><name>Membership</name><partyId>52823368</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2013-06-22T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>211640</milestoneId><milestone>Lost</milestone><probability>0</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:27Z</createdOn><updatedOn>2013-12-13T15:43:28.137Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20F
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:15 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company F</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:15 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823370
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20F
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:15 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823370</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:29Z</createdOn><updatedOn>2013-12-13T15:43:29Z</updatedOn><name>company
        F</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823370/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:16 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823370/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Prospect</milestone>\n  <probability type=\"integer\">10</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:16 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848980
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848980
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">10000</value>\n  <duration type=\"integer\">1</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:17 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '458'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848980</id><name>Membership</name><partyId>52823370</partyId><currency>GBP</currency><value>10000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><milestoneId>154048</milestoneId><milestone>Prospect</milestone><probability>10</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:30Z</createdOn><updatedOn>2013-12-13T15:43:31.251Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848980
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2014-07-26</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:18 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '517'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848980</id><name>Membership</name><partyId>52823370</partyId><currency>GBP</currency><value>10000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><expectedCloseDate>2014-07-26T00:00:00Z</expectedCloseDate><milestoneId>154048</milestoneId><milestone>Prospect</milestone><probability>10</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:30Z</createdOn><updatedOn>2013-12-13T15:43:31.878Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20G
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:18 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company G</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:19 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823371
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20G
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:19 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823371</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:32Z</createdOn><updatedOn>2013-12-13T15:43:32Z</updatedOn><name>company
        G</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823371/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:20 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823371/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Qualified</milestone>\n  <probability type=\"integer\">30</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:20 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848981
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848981
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">20000</value>\n  <duration type=\"integer\">2</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:21 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '459'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848981</id><name>Membership</name><partyId>52823371</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><milestoneId>211635</milestoneId><milestone>Qualified</milestone><probability>30</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:34Z</createdOn><updatedOn>2013-12-13T15:43:34.808Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848981
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2014-03-08</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:21 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '518'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848981</id><name>Membership</name><partyId>52823371</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2014-03-08T00:00:00Z</expectedCloseDate><milestoneId>211635</milestoneId><milestone>Qualified</milestone><probability>30</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:34Z</createdOn><updatedOn>2013-12-13T15:43:35.329Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20H
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:22 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '74'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="0"/>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00: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\" encoding=\"UTF-8\"?>\n<organisation>\n  <about
        nil=\"true\"/>\n  <name>company H</name>\n  <contacts/>\n</organisation>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:22 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823372
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party?q=company%20H
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:23 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '361'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><parties size="1"><organisation><id>52823372</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:36Z</createdOn><updatedOn>2013-12-13T15:43:36Z</updatedOn><name>company
        H</name></organisation></parties>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823372/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Closed</milestone>\n  <probability type=\"integer\">100</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:23 GMT
      Server:
      - Apache
      Content-Length:
      - '128'
      Vary:
      - Accept-Encoding
      Connection:
      - close
      Content-Type:
      - text/xml
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><message>unknown
        milestone for opportunity</message></response>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: post
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823372/opportunity
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <name>Membership</name>\n
        \ <milestone>Forecast</milestone>\n  <probability type=\"integer\">90</probability>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 201
      message: Created
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:24 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Location:
      - https://<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848983
      Content-Length:
      - '0'
    body:
      encoding: US-ASCII
      string: ''
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848983
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <value
        type=\"integer\">20000</value>\n  <duration type=\"integer\">3</duration>\n
        \ <durationBasis>YEAR</durationBasis>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:24 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '458'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848983</id><name>Membership</name><partyId>52823372</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><milestoneId>211638</milestoneId><milestone>Forecast</milestone><probability>90</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:38Z</createdOn><updatedOn>2013-12-13T15:43:38.638Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: put
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity/1848983
    body:
      encoding: US-ASCII
      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<opportunity>\n  <expectedCloseDate
        type=\"date\">2017-04-01</expectedCloseDate>\n</opportunity>\n"
    headers:
      Content-Type:
      - text/xml
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:25 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '517'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunity><id>1848983</id><name>Membership</name><partyId>52823372</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2017-04-01T00:00:00Z</expectedCloseDate><milestoneId>211638</milestoneId><milestone>Forecast</milestone><probability>90</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:38Z</createdOn><updatedOn>2013-12-13T15:43:39.200Z</updatedOn></opportunity>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: get
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/opportunity
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:26 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '3922'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><opportunities
        size="8"><opportunity><id>1848974</id><name>Membership</name><partyId>52823363</partyId><currency>GBP</currency><value>60000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><expectedCloseDate>2013-03-23T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:12Z</createdOn><updatedOn>2013-12-13T15:43:14Z</updatedOn></opportunity><opportunity><id>1848975</id><name>Membership</name><partyId>52823364</partyId><currency>GBP</currency><value>40000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2012-11-03T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>154049</milestoneId><milestone>Invoiced</milestone><probability>100</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:16Z</createdOn><updatedOn>2013-12-13T15:43:17Z</updatedOn></opportunity><opportunity><id>1848983</id><name>Membership</name><partyId>52823372</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2017-04-01T00:00:00Z</expectedCloseDate><milestoneId>211638</milestoneId><milestone>Forecast</milestone><probability>90</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:38Z</createdOn><updatedOn>2013-12-13T15:43:39Z</updatedOn></opportunity><opportunity><id>1848977</id><name>Membership</name><partyId>52823367</partyId><currency>GBP</currency><value>30000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2013-08-10T00:00:00Z</expectedCloseDate><milestoneId>211637</milestoneId><milestone>Contract</milestone><probability>70</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:23Z</createdOn><updatedOn>2013-12-13T15:43:24Z</updatedOn></opportunity><opportunity><id>1848976</id><name>Membership</name><partyId>52823365</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>3</duration><expectedCloseDate>2013-10-19T00:00:00Z</expectedCloseDate><milestoneId>211636</milestoneId><milestone>Proposal</milestone><probability>50</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:19Z</createdOn><updatedOn>2013-12-13T15:43:21Z</updatedOn></opportunity><opportunity><id>1848981</id><name>Membership</name><partyId>52823371</partyId><currency>GBP</currency><value>20000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2014-03-08T00:00:00Z</expectedCloseDate><milestoneId>211635</milestoneId><milestone>Qualified</milestone><probability>30</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:34Z</createdOn><updatedOn>2013-12-13T15:43:35Z</updatedOn></opportunity><opportunity><id>1848980</id><name>Membership</name><partyId>52823370</partyId><currency>GBP</currency><value>10000.00</value><durationBasis>YEAR</durationBasis><duration>1</duration><expectedCloseDate>2014-07-26T00:00:00Z</expectedCloseDate><milestoneId>154048</milestoneId><milestone>Prospect</milestone><probability>10</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:30Z</createdOn><updatedOn>2013-12-13T15:43:31Z</updatedOn></opportunity><opportunity><id>1848978</id><name>Membership</name><partyId>52823368</partyId><currency>GBP</currency><value>50000.00</value><durationBasis>YEAR</durationBasis><duration>2</duration><expectedCloseDate>2013-06-22T00:00:00Z</expectedCloseDate><actualCloseDate>2013-12-13T00:00:00Z</actualCloseDate><milestoneId>211640</milestoneId><milestone>Lost</milestone><probability>0</probability><owner>techteam</owner><createdOn>2013-12-13T15:43:27Z</createdOn><updatedOn>2013-12-13T15:43:28Z</updatedOn></opportunity></opportunities>
    http_version: 
  recorded_at: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823363
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:26 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823364
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:27 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823365
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:27 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823367
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:28 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823368
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:28 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823370
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:29 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823371
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:29 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823372
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:42:30 GMT
      Server:
      - Apache
      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: Sat, 01 Jun 2013 14:00:00 GMT
recorded_with: VCR 2.8.0