<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://api.i4a.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Laura</id>
	<title>i4a API Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://api.i4a.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Laura"/>
	<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php/Special:Contributions/Laura"/>
	<updated>2026-04-17T16:42:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://api.i4a.com/index.php?title=Authentication&amp;diff=72</id>
		<title>Authentication</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Authentication&amp;diff=72"/>
		<updated>2017-04-14T17:52:22Z</updated>

		<summary type="html">&lt;p&gt;Laura: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About ==&lt;br /&gt;
this article discusses how to perform remote authentication using your i4a website and data from a remote website or program.  It&#039;s important to note that the remote process need NOT be a website, it could be an application, even a mobile app or mobile website.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* SOAP.  The authentication protocol currently utilizes SOAP.  This is the mechanism that the i4a website uses to provide authentication.  This is a common protocol, with broad support and a lot of online resources that can provide both education as well as support for this.&lt;br /&gt;
* You can manage your API login and Token values by logging into your site admin and selecing &#039;API Settings&#039; from the Admin menu. On this screen, you can define a username/password to use with your API. This username will NOT count against your admin seats, however it can only be used to authenticate through the API and cannot be used as a regular admin acct. Your site should already have a token defined for it, but if you wish you can generate a new one. Please be aware that any changes to these values will require that any existing code that uses the i4a API must be updated with your changed values. &lt;br /&gt;
&lt;br /&gt;
== Use ==&lt;br /&gt;
* To access the authentication routine, your vendor must first authenticate themselves.  You could think of this as an initial handshake so that both parties can then begin further communication.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Information]][[category:HowTo]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=71</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=71"/>
		<updated>2016-11-08T19:20:08Z</updated>

		<summary type="html">&lt;p&gt;Laura: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are the two main views that can be used with the API. Contact i4a for support if you are not able to get what you need using these views, or from the tables in the examples provided.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[I4A api guide]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=70</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=70"/>
		<updated>2016-11-08T19:19:18Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Organizational Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are the two main views that can be used with the API. Contact i4a for support if you are not able to get what you need using these views, or from the tables in the examples provided.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[I4A api guide]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=69</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=69"/>
		<updated>2016-11-08T19:17:30Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Organizational Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are the two main views that can be used with the API. Contact i4a for support if you are not able to get what you need using these views, or from the tables in the examples provided.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Return to API Guide | I4A_api_guide]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=68</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=68"/>
		<updated>2016-11-08T19:17:17Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Organizational Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are the two main views that can be used with the API. Contact i4a for support if you are not able to get what you need using these views, or from the tables in the examples provided.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Return to API Guide I4A_api_guide]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=67</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=67"/>
		<updated>2016-11-08T19:15:56Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname like L/&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname Like L:isActive=1/&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Additional Examples]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=66</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=66"/>
		<updated>2016-11-08T19:15:29Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname like L/&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname Like L:isActive=1/&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Additional Examples]]&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=65</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=65"/>
		<updated>2016-11-08T19:14:46Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname like L/&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/lastname Like L:isActive=1/&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=64</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=64"/>
		<updated>2016-11-08T19:12:48Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=63</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=63"/>
		<updated>2016-11-08T19:04:06Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Selecting a Data Source to use with the API */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are the two main views that can be used with the API. Contact i4a for support if you are not able to get what you need using these views, or from the tables in the examples provided.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=62</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=62"/>
		<updated>2016-11-08T18:58:14Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Filtering on Member Type and Expiration Date using the API */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are two views that can be used with the API, and contain membership information. This is not a complete list of all available views. Contact i4a for support if you are not able to get what you need using the views or tables in the examples provided. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=61</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=61"/>
		<updated>2016-11-08T18:57:40Z</updated>

		<summary type="html">&lt;p&gt;Laura: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
===Selecting a Data Source to use with the API===&lt;br /&gt;
&lt;br /&gt;
Here are two views that can be used with the API, and contain membership information. This is not a complete list of all available views. Contact i4a for support if you are not able to get what you need using the views or tables in the examples provided. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_membertype&#039;&#039;&#039; -  Includes the &amp;quot;membertype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;paidthru&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the individual database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;ams_contactinformation_corptype&#039;&#039;&#039; - Includes the &amp;quot;corptype&amp;quot; field which contains the record&#039;s Member Type if it is populated. The &amp;quot;corpexpiration&amp;quot; field contains the record&#039;s Expiration Date. Records with a member type and a future expiration date are current members. &#039;&#039;&#039;&#039;&#039;Use this with the organizational database model only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=60</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=60"/>
		<updated>2016-11-08T18:36:04Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Organizational Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The following example uses the view ams_contactinformation_corptype. This view should only be used with the i4a Organizational Database Model. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=59</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=59"/>
		<updated>2016-11-08T18:14:33Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Organizational Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=58</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=58"/>
		<updated>2016-11-08T18:13:51Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Individual Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all matching records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=57</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=57"/>
		<updated>2016-11-08T18:11:14Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* Individual Database Model Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular:isActive=1/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all active database records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all matching records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=56</id>
		<title>Additional Examples</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=Additional_Examples&amp;diff=56"/>
		<updated>2016-11-08T18:09:59Z</updated>

		<summary type="html">&lt;p&gt;Laura: Created page with &amp;quot;==Filtering on Member Type and Expiration Date using the API==  The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Filtering on Member Type and Expiration Date using the API==&lt;br /&gt;
&lt;br /&gt;
The i4a system can be configured to use the Individual Database Model or the Organizational Database Model. The simplest way to determine the database model is to check for the presence of Manage Organizations on the Membership dropdown menu in the i4a system. If it is present, the system is configured to use the Organizational Database Model, and if it is absent, it is using the Individual Database Model. &lt;br /&gt;
&lt;br /&gt;
Below are some examples specific to each database model:&lt;br /&gt;
&lt;br /&gt;
===Individual Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
The examples below uses the view ams_contactinformation_membertype. This view should only be used with the i4a Individual Database Model:&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype=Regular/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all matching records where the member type is Regular. Current and expired members would be returned in this example. &lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype is not null/&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records that have a member type. Current and expired members would be returned in this example.&lt;br /&gt;
&lt;br /&gt;
===Organizational Database Model Examples===&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype=Regular/&amp;lt;authkey&amp;gt; - This example&#039;s only purpose is to show how you could filter for a specific member type using this view. In this specific view, the member type field is called corptype. The search string &amp;quot;Regular&amp;quot; should be replaced by the name of a member type that exists in the database you are querying. Returns a json packet that contains all matching records where the member type is Regular.&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=55</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=55"/>
		<updated>2016-11-08T17:52:56Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname like L/&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname Like L:isActive=1/&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=54</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=54"/>
		<updated>2016-11-08T17:52:24Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname like L//&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname Like L:isActive=1//&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=53</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=53"/>
		<updated>2016-11-04T17:12:11Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype like Regular//&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records where the user&#039;s member type starts with the word Regular. The view in this example should only be used by customers with the i4a individual database model. &lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_corptype/corptype like Regular//&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records where the user&#039;s member type starts with the word Regular. The view in this example should only be used by customers with the i4a organizational database model. &lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname like L//&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname Like L:isActive=1//&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
	<entry>
		<id>https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=52</id>
		<title>I4A API Guide v1 Deprecated March 31, 2024</title>
		<link rel="alternate" type="text/html" href="https://api.i4a.com/index.php?title=I4A_API_Guide_v1_Deprecated_March_31,_2024&amp;diff=52"/>
		<updated>2016-11-04T17:06:51Z</updated>

		<summary type="html">&lt;p&gt;Laura: /* API Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= I4A API Guide =&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
&lt;br /&gt;
This guide will outline how to use the Internet4associations API.  The api makes use of the SOAP protocol for authentication only.  All other aspects of the API use REST.&lt;br /&gt;
&lt;br /&gt;
Currently the API determines if the user wishes to retrieve an Object or a Collection based on the plurality of the object.  So requesting: /membership.contact/ and /membership.contacts/ will access the object and the collection respectively.   There is also a /view.XXX/ method that will allow you to retrieve a table or view directly, however that mode is and always will be READONLY.&lt;br /&gt;
&lt;br /&gt;
==  Security ==&lt;br /&gt;
To access any of the API functionality, you must first authenticate.  &lt;br /&gt;
Information is available on the [[API Settings]] page on how to obtain the values needed to authenticate and update them if need be.&lt;br /&gt;
&lt;br /&gt;
Authentication can come in one of 2 forms:&lt;br /&gt;
=== REST Authentication ===&lt;br /&gt;
REST is the preferred method of authenticating with your API.&lt;br /&gt;
To authenticate with REST you would simply navigate to:&lt;br /&gt;
* &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/api/authenticate/&amp;lt;USER&amp;gt;/&amp;lt;PASSWORD&amp;gt;/&amp;lt;TOKEN&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will get back a json packet which will contain your authKey which you can then use to make calls to the API.&lt;br /&gt;
&lt;br /&gt;
=== Soap Authentication ===&lt;br /&gt;
This method is deprecated and should no longer be used for new projects.&lt;br /&gt;
* Use the SOAP method authenticateAdmin that is available from the SOAP WSDL located at: &lt;br /&gt;
** &amp;lt;pre&amp;gt;http://&amp;lt;site.com&amp;gt;/i4a/utilities/authenticate.cfc?wsdl&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The authenticateAdmin takes 3 parameters, they are:&lt;br /&gt;
*  Username: Must be an administrator username capable of logging onto the site admin.&lt;br /&gt;
*  Password: the password for the user.&lt;br /&gt;
*  Token: The Token is specific to each website.  It will be made available in your site admin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Calling the API involves building a URL that the API engine can decode.  The API engine uses the REST method.  REST allows you to utilize GET, POST and DELETE methods.  Currently the i4a api only supports GET, which means the API is read-only at this time.&lt;br /&gt;
&lt;br /&gt;
To access the API you can test it in your browser.  First you should login to your admin, then direct your page to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another method could be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://site.com/i4a/api/json/membership.contacts/city like Chicago/&amp;lt;authkey&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The REST command is broken up into several parts, they are from left-right&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;http://site.com/i4a/api/&amp;lt;/code&amp;gt; - this is the base url that every api call will have in common&lt;br /&gt;
* /json/ This tells the processor what format to return data in.  The options here are Json, XML and WDDX.  Json is the fastest format and also more common when using AJAX.  For more information see [[api_return_format|API Return Format]]&lt;br /&gt;
* /membership.contact/ - This tells the processor what object or table to access.  &lt;br /&gt;
* /city like Chicago/ - This allows you to filter your results.&lt;br /&gt;
&lt;br /&gt;
=== Filtering ===&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* /firstname=don/ - returns records that match firstname=don&lt;br /&gt;
* /City Like Chicago/ - returns records where the city field starts with Chicago&lt;br /&gt;
* /City CONTAINS CAN/ - finds records where the city field contains the string &#039;CAN&#039;&lt;br /&gt;
* /logincount &amp;gt; 500 / (Need to test this&lt;br /&gt;
* /NULL/ - For querying a collection of records, this would allow for NO filter.  This is required because simply leaving the filter empty results in 2 // and the 2nd / is removed by apache during the processing.&lt;br /&gt;
&lt;br /&gt;
== API Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Examples ==&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/xml/membership.contact/24228/&amp;lt;authkey&amp;gt; - returns an xml packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/wddx/membership.contact/24228/&amp;lt;authkey&amp;gt; - Returns a WDDX packet for contct record ID = 24228&lt;br /&gt;
The above examples are only relevent when referencing I4a objects.  When interacting with views as below, you must always specify the name/value pair.&lt;br /&gt;
&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation/id=24228/&amp;lt;authkey&amp;gt; - Returns a json packet for contact record ID = 24228&lt;br /&gt;
* /i4a/api/json/view.ams_contactinformation_membertype/membertype like Regular//&amp;lt;authkey&amp;gt; - Returns a json packet that contains all matching records where membertype starts with the word Regular&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname like L//&amp;lt;authkey&amp;gt; - Returns a json packet that would contain all matching records where lastname started with the letter L&lt;br /&gt;
* /i4a/api/json/view.All Contacts/lastname Like L:isActive=1//&amp;lt;authkey&amp;gt; - Same as above, but further filters by isActive = 1&lt;br /&gt;
* /i4a/api/json/membership.contacts/&amp;lt;authkey&amp;gt; - returns all records from the table related to the ORM object com.om.collections.membership.contacts.&lt;br /&gt;
* /i4a/api/json/view.ams_contact/&amp;lt;authkey&amp;gt; - returns the same recordset as the example above, but interacts directly with the table itself.&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;br /&gt;
&lt;br /&gt;
== Implemention Examples ==&lt;br /&gt;
* [[i4a api ColdFusion Example|ColdFusion Example]]&lt;br /&gt;
* [[i4a api PHP Example|PHP Example]]&lt;br /&gt;
* [[i4a api Ajax Example|AJax Example]]&lt;br /&gt;
&lt;br /&gt;
== Testing the API ==&lt;br /&gt;
Testing the API and inspecting the data returned is very easily achieved with any modern browser.  It is worth noting that by default, only Firefox will display XML (if the header is set to text/xml) in a readable format.  It is possible however in both Google Chrome and Safari to view the xml data in a user-friendly format by going into the developer tools for the browsers.  For a better experience however it is recommended you install the following add-ons to each browser for a better experience:&lt;br /&gt;
&lt;br /&gt;
=== Google Chrome ===&lt;br /&gt;
* https://chrome.google.com/extensions/detail/mfnjijpckfecpgchobgcfndicenjldoe - will display json data in a user-friendly format. Note: This is a great extension and displays json in a very good format, but it appears when viewing XML with the plugin below this plugin seems to insert some data at the top of the page.  The xml viewer still works fine and rest assured this information is not IN the XML packet, but rather added in after by your browser and this plugin.&lt;br /&gt;
* https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb - will display XML and WDDX in a friendly format directly in your browser page.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
* https://addons.mozilla.org/en-US/firefox/addon/10869 - will display json data in a user-friendly format&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
At this time there appears to be no plugins for Safari that can aid in viewing the data formats, it&#039;s recommended you use either Chrome or Firefox if you are going to be interacting with the API from the browser.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* http://en.wikipedia.org/wiki/Representational_State_Transfer Wikipedia article on REST&lt;br /&gt;
* http://en.wikipedia.org/wiki/SOAP - Wikipedia Article on SOAP protocol&lt;br /&gt;
&lt;br /&gt;
[[Category:api]]&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
</feed>