theodi/odi-metrics-tasks

View on GitHub
fixtures/vcr_cassettes/Generate_commercial_metrics/Total_pipeline_for_current_year_and_next_three_years.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:33:31 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:33:32 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/52823180
      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:33:32 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>52823180</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:34:46Z</createdOn><updatedOn>2013-12-13T15:34:46Z</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/52823180/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:33:33 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/52823180/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:33:33 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/1848932
      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/1848932
    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:33:34 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>1848932</id><name>Membership</name><partyId>52823180</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:34:47Z</createdOn><updatedOn>2013-12-13T15:34:48.144Z</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/1848932
    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:33:34 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>1848932</id><name>Membership</name><partyId>52823180</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:34:47Z</createdOn><updatedOn>2013-12-13T15:34:48.632Z</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:33:35 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:33:35 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/52823182
      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:33:36 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>52823182</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:34:49Z</createdOn><updatedOn>2013-12-13T15:34:49Z</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/52823182/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:33:36 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/52823182/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:33:37 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/1848933
      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/1848933
    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:33:37 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>1848933</id><name>Membership</name><partyId>52823182</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:34:51Z</createdOn><updatedOn>2013-12-13T15:34:51.720Z</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/1848933
    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:33:38 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>1848933</id><name>Membership</name><partyId>52823182</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:34:51Z</createdOn><updatedOn>2013-12-13T15:34:52.348Z</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:33:39 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:33:39 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/52823183
      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:33:40 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>52823183</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:34:53Z</createdOn><updatedOn>2013-12-13T15:34:53Z</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/52823183/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:33:40 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/52823183/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:33:41 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/1848934
      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/1848934
    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:33:41 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>1848934</id><name>Membership</name><partyId>52823183</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:34:54Z</createdOn><updatedOn>2013-12-13T15:34:55.353Z</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/1848934
    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:33:42 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>1848934</id><name>Membership</name><partyId>52823183</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:34:54Z</createdOn><updatedOn>2013-12-13T15:34:56.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%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:33:42 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:33:43 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/52823185
      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:33:43 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>52823185</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:34:56Z</createdOn><updatedOn>2013-12-13T15:34:56Z</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/52823185/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:33:44 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/52823185/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:33:44 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/1848935
      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/1848935
    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:33:45 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>1848935</id><name>Membership</name><partyId>52823185</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:34:58Z</createdOn><updatedOn>2013-12-13T15:34:58.900Z</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/1848935
    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:33:45 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>1848935</id><name>Membership</name><partyId>52823185</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:34:58Z</createdOn><updatedOn>2013-12-13T15:34:59.582Z</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:33:46 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:33:46 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/52823188
      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:33:47 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>52823188</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:35:00Z</createdOn><updatedOn>2013-12-13T15:35:00Z</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/52823188/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:33:47 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/52823188/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:33:48 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/1848937
      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/1848937
    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:33:48 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>1848937</id><name>Membership</name><partyId>52823188</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:35:02Z</createdOn><updatedOn>2013-12-13T15:35:02.486Z</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/1848937
    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:33:49 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>1848937</id><name>Membership</name><partyId>52823188</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:35:02Z</createdOn><updatedOn>2013-12-13T15:35:03.238Z</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:33:49 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:33:50 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/52823189
      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:33:50 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>52823189</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:35:04Z</createdOn><updatedOn>2013-12-13T15:35:04Z</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/52823189/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:33:51 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/52823189/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:33:51 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/1848938
      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/1848938
    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:33:52 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>1848938</id><name>Membership</name><partyId>52823189</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:35:05Z</createdOn><updatedOn>2013-12-13T15:35:06.298Z</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/1848938
    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:33:53 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>1848938</id><name>Membership</name><partyId>52823189</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:35:05Z</createdOn><updatedOn>2013-12-13T15:35:06.956Z</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:33:53 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:33:54 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/52823195
      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:33:54 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>52823195</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:35:07Z</createdOn><updatedOn>2013-12-13T15:35:07Z</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/52823195/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:33:55 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/52823195/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:33:55 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/1848940
      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/1848940
    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:33:56 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>1848940</id><name>Membership</name><partyId>52823195</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:35:09Z</createdOn><updatedOn>2013-12-13T15:35:09.863Z</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/1848940
    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:33:56 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>1848940</id><name>Membership</name><partyId>52823195</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:35:09Z</createdOn><updatedOn>2013-12-13T15:35:10.648Z</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:33: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 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:33: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/52823197
      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:33: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>52823197</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:35:11Z</createdOn><updatedOn>2013-12-13T15:35:11Z</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/52823197/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:33: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/52823197/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:33: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/1848941
      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/1848941
    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:33:59 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>1848941</id><name>Membership</name><partyId>52823197</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:35:13Z</createdOn><updatedOn>2013-12-13T15:35:13.523Z</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/1848941
    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:34:00 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>1848941</id><name>Membership</name><partyId>52823197</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:35:13Z</createdOn><updatedOn>2013-12-13T15:35:14.028Z</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:34:00 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>1848932</id><name>Membership</name><partyId>52823180</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:34:47Z</createdOn><updatedOn>2013-12-13T15:34:48Z</updatedOn></opportunity><opportunity><id>1848933</id><name>Membership</name><partyId>52823182</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:34:51Z</createdOn><updatedOn>2013-12-13T15:34:52Z</updatedOn></opportunity><opportunity><id>1848941</id><name>Membership</name><partyId>52823197</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:35:13Z</createdOn><updatedOn>2013-12-13T15:35:14Z</updatedOn></opportunity><opportunity><id>1848935</id><name>Membership</name><partyId>52823185</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:34:58Z</createdOn><updatedOn>2013-12-13T15:34:59Z</updatedOn></opportunity><opportunity><id>1848934</id><name>Membership</name><partyId>52823183</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:34:54Z</createdOn><updatedOn>2013-12-13T15:34:56Z</updatedOn></opportunity><opportunity><id>1848940</id><name>Membership</name><partyId>52823195</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:35:09Z</createdOn><updatedOn>2013-12-13T15:35:10Z</updatedOn></opportunity><opportunity><id>1848938</id><name>Membership</name><partyId>52823189</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:35:05Z</createdOn><updatedOn>2013-12-13T15:35:06Z</updatedOn></opportunity><opportunity><id>1848937</id><name>Membership</name><partyId>52823188</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:35:02Z</createdOn><updatedOn>2013-12-13T15:35:03Z</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/52823180
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:01 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/52823182
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:01 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/52823183
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:02 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/52823185
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:02 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/52823188
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:03 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/52823189
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:04 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/52823195
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:04 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/52823197
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:34:05 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