theodi/odi-metrics-tasks

View on GitHub
fixtures/vcr_cassettes/Generate_commercial_metrics/Email_about_old_opportunities.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:42: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:42:31 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/52823377
      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:42: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>52823377</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:45Z</createdOn><updatedOn>2013-12-13T15:43:45Z</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/52823377/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:32 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/52823377/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: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/1848984
      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/1848984
    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:42:33 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>1848984</id><name>Membership</name><partyId>52823377</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:47Z</createdOn><updatedOn>2013-12-13T15:43:47.847Z</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/1848984
    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: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>1848984</id><name>Membership</name><partyId>52823377</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:47Z</createdOn><updatedOn>2013-12-13T15:43:48.355Z</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: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:42: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/52823378
      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: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>52823378</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:49Z</createdOn><updatedOn>2013-12-13T15:43: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/52823378/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: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/52823378/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: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/1848985
      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/1848985
    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: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>1848985</id><name>Membership</name><partyId>52823378</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:50Z</createdOn><updatedOn>2013-12-13T15:43:51.533Z</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/1848985
    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: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>1848985</id><name>Membership</name><partyId>52823378</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:50Z</createdOn><updatedOn>2013-12-13T15:43:52.060Z</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:38 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: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/52823379
      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:39 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>52823379</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:53Z</createdOn><updatedOn>2013-12-13T15:43: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/52823379/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: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/52823379/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:40 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/1848986
      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/1848986
    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: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>1848986</id><name>Membership</name><partyId>52823379</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:54Z</createdOn><updatedOn>2013-12-13T15:43:55.174Z</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/1848986
    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: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>1848986</id><name>Membership</name><partyId>52823379</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:54Z</createdOn><updatedOn>2013-12-13T15:43:55.789Z</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: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:42: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/52823381
      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: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>52823381</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:56Z</createdOn><updatedOn>2013-12-13T15:43: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/52823381/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: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/52823381/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: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/1848987
      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/1848987
    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: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>1848987</id><name>Membership</name><partyId>52823381</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:58Z</createdOn><updatedOn>2013-12-13T15:43:59.451Z</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/1848987
    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:46 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>1848987</id><name>Membership</name><partyId>52823381</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:58Z</createdOn><updatedOn>2013-12-13T15:44:00.077Z</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: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:42:47 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/52823382
      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:48 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>52823382</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:44:01Z</createdOn><updatedOn>2013-12-13T15:44:01Z</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/52823382/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:48 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/52823382/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:49 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/1848988
      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/1848988
    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:50 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>1848988</id><name>Membership</name><partyId>52823382</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:44:03Z</createdOn><updatedOn>2013-12-13T15:44:04.084Z</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/1848988
    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:50 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>1848988</id><name>Membership</name><partyId>52823382</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:44:03Z</createdOn><updatedOn>2013-12-13T15:44:04.619Z</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:51 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: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/party/52823385
      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:52 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>52823385</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:44:05Z</createdOn><updatedOn>2013-12-13T15:44:05Z</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/52823385/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:52 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/52823385/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:53 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/1848992
      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/1848992
    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:54 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>1848992</id><name>Membership</name><partyId>52823385</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:44:07Z</createdOn><updatedOn>2013-12-13T15:44:07.674Z</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/1848992
    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:54 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>1848992</id><name>Membership</name><partyId>52823385</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:44:07Z</createdOn><updatedOn>2013-12-13T15:44:08.318Z</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:55 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: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/party/52823389
      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:56 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>52823389</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:44:09Z</createdOn><updatedOn>2013-12-13T15:44:09Z</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/52823389/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:56 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/52823389/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: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/opportunity/1848993
      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/1848993
    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:57 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>1848993</id><name>Membership</name><partyId>52823389</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:44:10Z</createdOn><updatedOn>2013-12-13T15:44:11.361Z</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/1848993
    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:58 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>1848993</id><name>Membership</name><partyId>52823389</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:44:10Z</createdOn><updatedOn>2013-12-13T15:44:12.285Z</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:59 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: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/party/52823391
      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:43:00 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>52823391</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:44:13Z</createdOn><updatedOn>2013-12-13T15:44:13Z</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/52823391/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:43:00 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/52823391/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:43: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/opportunity/1848994
      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/1848994
    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:43:01 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>1848994</id><name>Membership</name><partyId>52823391</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:44:14Z</createdOn><updatedOn>2013-12-13T15:44:15.316Z</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/1848994
    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:43:02 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>1848994</id><name>Membership</name><partyId>52823391</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:44:14Z</createdOn><updatedOn>2013-12-13T15:44:15.949Z</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:43:02 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>1848984</id><name>Membership</name><partyId>52823377</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:47Z</createdOn><updatedOn>2013-12-13T15:43:48Z</updatedOn></opportunity><opportunity><id>1848985</id><name>Membership</name><partyId>52823378</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:50Z</createdOn><updatedOn>2013-12-13T15:43:52Z</updatedOn></opportunity><opportunity><id>1848994</id><name>Membership</name><partyId>52823391</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:44:14Z</createdOn><updatedOn>2013-12-13T15:44:15Z</updatedOn></opportunity><opportunity><id>1848987</id><name>Membership</name><partyId>52823381</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:58Z</createdOn><updatedOn>2013-12-13T15:44:00Z</updatedOn></opportunity><opportunity><id>1848986</id><name>Membership</name><partyId>52823379</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:54Z</createdOn><updatedOn>2013-12-13T15:43:55Z</updatedOn></opportunity><opportunity><id>1848993</id><name>Membership</name><partyId>52823389</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:44:10Z</createdOn><updatedOn>2013-12-13T15:44:12Z</updatedOn></opportunity><opportunity><id>1848992</id><name>Membership</name><partyId>52823385</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:44:07Z</createdOn><updatedOn>2013-12-13T15:44:08Z</updatedOn></opportunity><opportunity><id>1848988</id><name>Membership</name><partyId>52823382</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:44:03Z</createdOn><updatedOn>2013-12-13T15:44:04Z</updatedOn></opportunity></opportunities>
    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/users
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:03 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '408'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><users size="2"><user><username>techteam</username><name>Tech
        Team</name><currency>GBP</currency><timezone>Europe/London</timezone><loggedIn>true</loggedIn><partyId>36614070</partyId></user><user><username><CAPSULECRM_DEFAULT_OWNER></username><name>Default
        User</name><currency>GBP</currency><timezone>Europe/London</timezone><partyId>37121194</partyId></user></users>
    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/36614070
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:03 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '429'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><person><id>36614070</id><contacts><email><id>69924901</id><emailAddress>tech@<GITHUB_ORGANISATION>.org</emailAddress></email></contacts><pictureURL>https://secure.gravatar.com/avatar/684cd479441406753cb68c1f125e7145?s=70&amp;r=G</pictureURL><createdOn>2013-02-19T15:25:32Z</createdOn><updatedOn>2013-03-01T11:58:50Z</updatedOn><firstName>Tech</firstName><lastName>Team</lastName></person>
    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/52823381
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:04 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '333'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><organisation><id>52823381</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:56Z</createdOn><updatedOn>2013-12-13T15:43:56Z</updatedOn><name>company
        D</name></organisation>
    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/36614070
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:04 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '429'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><person><id>36614070</id><contacts><email><id>69924901</id><emailAddress>tech@<GITHUB_ORGANISATION>.org</emailAddress></email></contacts><pictureURL>https://secure.gravatar.com/avatar/684cd479441406753cb68c1f125e7145?s=70&amp;r=G</pictureURL><createdOn>2013-02-19T15:25:32Z</createdOn><updatedOn>2013-03-01T11:58:50Z</updatedOn><firstName>Tech</firstName><lastName>Team</lastName></person>
    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/52823379
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:05 GMT
      Server:
      - Apache
      Set-Cookie:
      - JSESSIONID=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
      Content-Length:
      - '333'
      Content-Type:
      - ! '*/*'
    body:
      encoding: US-ASCII
      string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><organisation><id>52823379</id><contacts/><pictureURL>https://d365sd3k9yw37.cloudfront.net/a/1386856454/theme/default/images/org_avatar_70.png</pictureURL><createdOn>2013-12-13T15:43:53Z</createdOn><updatedOn>2013-12-13T15:43:53Z</updatedOn><name>company
        C</name></organisation>
    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/52823377
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43: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
- request:
    method: delete
    uri: https://<CAPSULECRM_API_TOKEN>:x@<CAPSULECRM_ACCOUNT_NAME>.capsulecrm.com/api/party/52823378
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:06 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/52823379
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:06 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/52823381
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:07 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/52823382
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:07 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/52823385
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:08 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/52823389
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:08 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/52823391
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - CapsuleCRM ruby gem
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Fri, 13 Dec 2013 15:43:09 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