Skip to content

Instantly share code, notes, and snippets.

@nozpheratu
Last active August 29, 2015 14:07
Show Gist options
  • Save nozpheratu/ab886ff3b89352ee5ae3 to your computer and use it in GitHub Desktop.
Save nozpheratu/ab886ff3b89352ee5ae3 to your computer and use it in GitHub Desktop.
AgileCRM REST api bulk contact delete with POST
cyle@cyle-UX302LG:~/development/ruby/gems/agilecrm-ruby-api (seperate-classes)$ curl https://mydomain.agilecrm.com/dev/api/contacts/bulk -d '{"model_ids" : [4808361379889152, 5069036098420736]}' -v -u "[email protected]:xxxxx" -X POST
* About to connect() to mydomain.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-RC4-SHA
* Server certificate:
* subject: serialNumber=w1dh1k6AtH5pZWm6IMLHz54ayydSaJ3W; OU=GT54387286; OU=See www.rapidssl.com/resources/cps (c)13; OU=Domain Control Validated - RapidSSL(R); CN=*.agilecrm.com
* start date: 2013-08-17 06:07:21 GMT
* expire date: 2015-09-20 02:08:07 GMT
* subjectAltName: mydomain.agilecrm.com matched
* issuer: C=US; O=GeoTrust, Inc.; CN=RapidSSL CA
* SSL certificate verify ok.
* Server auth using Basic with user '[email protected]'
> POST /dev/api/contacts/bulk HTTP/1.1
> Authorization: Basic Y3lsZWh1bnRlckBob3RtYWlsLmNvbTo0dXFmYTI0ZGkzcWhsbGlhbHNyODE2ZGhkbA==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: mydomain.agilecrm.com
> Accept: */*
> Content-Length: 52
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 52out of 52 bytes
< HTTP/1.1 405 Method Not Allowed
< Allow: GET, DELETE, OPTIONS, HEAD
< Date: Wed, 08 Oct 2014 16:30:38 GMT
< Content-Type: text/html
< Server: Google Frontend
< Content-Length: 0
<
* Connection #0 to host mydomain.agilecrm.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment