Skip to content

Instantly share code, notes, and snippets.

curl https://{domain}.agilecrm.com/dev/api/contacts \
-H "Accept : application/json" \
-H "Content-Type: application/json" \
-d '{
"id": "5651146588815360",
"type": "PERSON",
"star_value": 5,
"lead_score": 80,
"properties": [
{
/*
* Created by SharpDevelop.
* User: ghanshyam
* Date: 13-07-2016
* Time: 17:10
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Net;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
</head>
<body>
<?php
/**
* Agile CRM \ Curl Wrap
*
* The Curl Wrap is the entry point to all services and actions.
*
* @author Agile CRM developers <Ghanshyam>
*/
#Here is the first piece of relavant code. The member object is passed into this
#function and then the contact data hash is built before posting to Agile.
#AGILE_KEY, AGILE_EMAIL, AGILE_DOMAIN are enviornment variables.
require "net/http"
require "uri"
require 'json'
def self.transfer_member(member)
contact_data = {}
contact_data["star_value"] = "0"
contact_data["lead_score"] = "0"
#Here is the first piece of relavant code. The member object is passed into this
#function and then the contact data hash is built before posting to Agile.
#AGILE_KEY, AGILE_EMAIL, AGILE_DOMAIN are enviornment variables.
require "net/http"
require "uri"
require 'json'
def self.transfer_member(member)
contact_data = {}
contact_data["star_value"] = "4"
contact_data["lead_score"] = "10"
/*
* Created by SharpDevelop.
* User: ghanshyam
* Date: 13-07-2016
* Time: 17:10
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Net;
var https = require('https');
function AgileCRMManager(domain, key, email) {
this.domain = domain + ".agilecrm.com";
this.key = key;
this.email = email;
var authStr = email + ":" + key;
this.contactAPI = new ContactAPI(this.domain, this.key, this.email);
/**
* Created by Ghanshyam on 2/7/16.
*/
var AgileCRMManager = require("./agilecrm.js");
var obj = new AgileCRMManager("your_domain", "your_rest_api_key", "your_user_email");
var success = function (data) {
console.log(data);
};
var error = function (data) {
console.log(data);
<script id="settings-account-tab-template" type="text/html">
<div class="tab-container m-b-none">
<ul class="nav nav-tabs b-b-none">
<li class="settings-account-prefs"><a href="#account-prefs" class="b-l-none">Preferences</a></li>
<li class="settings-account-ips"><a href="#account-ipaccess" class="b-l-none">Security</a></li>
<li class="settings-account-dbbackups"><a href="#db-backups" class="b-l-none">Backups</a></li>
<li class="settings-sso-login"><a href="#sso-login" class="b-l-none">Single Sign-on (SSO)</a></li>
<li class="settings-account-signature"><a href="#account-signature" class="b-l-none">Signature</a></li>
</ul>
</div>