Forum
Community Login
Infusionsoft Community
Welcome, Guest
Please Login or Register.    Lost Password?
Re:What are APIs, Capabilities and More... (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:What are APIs, Capabilities and More...
#339
JManna (Admin)
Admin
Posts: 794
graph
User Online Now Click here to see the profile of this user
What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 22  
One of the more often overlooked features of the Infusionsoft application is the ability to integrate it with Application Programming Interfaces (APIs).

In layman's terms, APIs are used to make one program (or application) talk to another, run commands, and do pretty useful things. You can extend an application's functionality with an API, like handling Web Forms, Customer Registration Management, as well as additional features for shopping carts and more.

Infusionsoft supports the XML-RPC API. This is a very common, secure and reliable framework for interacting with Web applications.

You can learn a lot more about APIs on our Knowledge Base anytime for easy reference. Have a developer or a Web Genius? Send them the Zip file included there, and they can learn how to interact with Infusionsoft via the XML-RPC API.

Got any API questions? Ask them here in this forum, and I'll get our API Ninja (Justin) on over to help you overcome any obstacles with it.

~Joe
 
Report to moderator   Logged Logged  
 
__________________________
Joseph Manna
- Infusionsoft | Community Manager
- joseph.manna@infusionsoft.com
- http://community.infusionsoft.com/

Check out our excellent resources for getting help and support at the FuseBox!

- Stay up to date on the latest Infusionsoft, Small Business and Marketing posts on the Infusionsoft Blog!
  The administrator has disabled public write access.
#427
Jaco (User)
Junior Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 0  
My webmaster is attempting to get the API set up on our system, however keeps getting the following error while trying to use the api.php...

5
Didn't receive 200 OK from remote server. (HTTP/1.0 301 Moved Permanently)
5
Didn't receive 200 OK from remote server. (HTTP/1.0 301 Moved Permanently)
5
Didn't receive 200 OK from remote server. (HTTP/1.0 301 Moved Permanently)

Here is the top code...

include("xmlrpc-2.2.1/lib/xmlrpc.inc");

#The client object will set up a connection to the server that can be re-used for
#later calls
#This was split from the URL http://marty.infusionsoft.com:80/api/xmlrpc
//$client = new xmlrpc_client("/api/xmlrpc", "marty.infusionsoft.com", 80);
$client = new xmlrpc_client("/hydrogen", "www.savefuel.ca");
#This will make it so we get back raw php types - they are easier to work with
$client->return_type = "phpvals";


Some help please? What extra info is required to assist us with this issue?

Thanks.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/15 03:12 By Jaco.
  The administrator has disabled public write access.
#429
JManna (Admin)
Admin
Posts: 794
graph
User Online Now Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 22  
First, I admit that I might not be that awesome of an API Ninja as Justin on here; however, I think I have a hunch on why this is happening.

a 301 Permanently Moved means that the server is attempting to redirect Web traffic to another resource. In order to be PCI compliant (secure), one would need to ensure they are using HTTPS and port 443 -- instead of "http" and port 80.

I'll summon the API Ninjas on in here to have a look, but make sure you are using HTTPS for connection.

~Joe
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/15 17:04 By JManna.
 
__________________________
Joseph Manna
- Infusionsoft | Community Manager
- joseph.manna@infusionsoft.com
- http://community.infusionsoft.com/

Check out our excellent resources for getting help and support at the FuseBox!

- Stay up to date on the latest Infusionsoft, Small Business and Marketing posts on the Infusionsoft Blog!
  The administrator has disabled public write access.
#438
KAnderson (User)
CMAC
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 0  
If an API is created for some cool feature (lets say someone creates an API to sync the InfusionSoft calendar to Google Calendars), would this API be posted anyplace so other Infusion users could get the API and use it?

 
Report to moderator   Logged Logged  
 
Ken Anderson
CMAC
Revolutionizing the way small businesses grow
www.truenorthllc.com
  The administrator has disabled public write access.
#439
Jaco (User)
Junior Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 0  
Thx Joe,
I am using http...I will have a look at using https, and let you know what happens.
Cheers.
Paul
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#471
justinm (User)
Infusionite
Posts: 67
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 11  
KAnderson wrote:
If an API is created for some cool feature (lets say someone creates an API to sync the InfusionSoft calendar to Google Calendars), would this API be posted anyplace so other Infusion users could get the API and use it?



I will be posting applications I code on here from time to time.
 
Report to moderator   Logged Logged  
 
In C++ it's harder to shoot yourself in the foot, but when you do, you blow off your whole leg.
  The administrator has disabled public write access.
#542
Jaco (User)
Junior Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 7 Months ago Karma: 0  
OK, have upgraded the site to use SSL, and now the beginning coding looks like so...

#PHP examples for using the Infusion API. The library used above
#can be found at http://phpxmlrpc.sourceforge.net/

#This example will perform three functions:
# 1. Add a new contact record
# 2. Add the newly created contact to a group
# 3. Look up a list of all contacts that belong to that group

include("http://www.savefuel.ca/hydrogen/test_area/php/xmlrpc-2.2.1/lib/xmlrpc.inc");

#The client object will set up a connection to the server that can be re-used for
#later calls
#This was split from the URL http://marty.infusionsoft.com:80/api/xmlrpc
//$client = new xmlrpc_client("/api/xmlrpc", "marty.infusionsoft.com", 80);
$client = new xmlrpc_client("https://www.savefuel.ca/hydrogen");
#This will make it so we get back raw php types - they are easier to work with
$client->return_type = "phpvals";
return_type = "phpvals";


I STILL get the following...

5
Didn't receive 200 OK from remote server. (HTTP/1.1 301 Moved Permanently)
5
Didn't receive 200 OK from remote server. (HTTP/1.1 301 Moved Permanently)
5
Didn't receive 200 OK from remote server. (HTTP/1.1 301 Moved Permanently)


PLEASE HELP!!
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/24 02:07 By Jaco.
  The administrator has disabled public write access.
#649
GraemeS (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 6 Months ago Karma: 1  
FYI - switch the port to 443 and specify https (as per the XML-RPC manual!)

ie the documentation/manual should read:

$client = new xmlrpc_client("/api/xmlrpc", marty.infusionsoft.com", 443, https);

cheers;
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1600
dsimovic2 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:What are APIs, Capabilities and More... 1 Year, 2 Months ago Karma: 0  
Nevermind... Fixed the problem.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/09 13:02 By dsimovic2.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop