Infusionsoft API for humans

programming, PHP

For one of projects, I had to implement integration with Infusionsoft. Reviewing the API documentation I found it very simple to use, but when I looked into their SDK it did not like me too much. Properly say it seemed me horrible. How they would be able to create such ugly SDK for such nice API? 

First of all I did not like xmlrps third party library used in it, it was written by Edd Dumbill long ago and did non seem me very beautiful - the php itself already has nice XML RPC implementation since version 4.0 (though, yes, I had sin to write own XML RPS too...) . The structure of API is not very convenient because I have to pass API key to ALL api functions - it would be logical for SDK to store key and use it with later calls - I am too lazy to write it every time. 

Another thing iSDK is uses one class with lots of functions - it would be logical to use classes which represents basic services in infusionsoft API.

Most of functions in SDK have different names then original API functions, furthemore names are very strange and nonintuitive -  can you let me know what does function addCon or campAssign?

So I went to idea to create own Infusionsoft API implementation.

- it would have proper type hinting that would help me use proper method names in Eclipse
- would have same method names as used in Infusionsoft XML RPC calls
- it would require to pass API keys in every call
- it would have transparent arguments without any php_xmlprc_encode crap

I am too lazy to code this by hand so I am created simple parser that takes infusionsoft API documentation and parses it creating nice friendly human oriented API.

The final API (and generating script) I have uploaded to hithub. Hope it would help to somebody with work with Infusionsoft via their API.




RSS комментариев

Для того чтобы каждый раз не представляться можно войти как зарегистрированный пользователь.


разрешены только теги br, font, span, p, strong, u, p, blockquote, a, div, img - остальные будут безжалостно удаляться

разное (187)
howto (124)
программирование (108)
гад-же-ты (75)
мысли (42)
PHP (41)
JavaScript (39)
вебмастеринг (37)
linux (28)
гондураша (28)
юмор (25)
полезное (21)
Android (17)
движок (17)
софт (15)
кино (14)
деньги (14)
видео (13)
музыка (10)
путешествия (10)
интернет (10)
беспредел (10)
книги (10)
diy (9)
занимательная физика (8)
ztools (8)
умный дом (8)
Nokia 5800 (7)
хостинг (7)
языки (7)
lifehack (6)
css (6)
вебдизайн (6)
apple (5)
связной (5)
oDesk (5)
arduino (5)
козлы (5)
прелоадер (5)
движек (4)
кухня (4)
svn (4)
Python (4)
аниме (4)
занимательная юриспруденция (4)
энергия (3)
software (3)
рестораны (3)
synphony (3)
webmastering (2)
Java (2)
Берлин (2)
Ruby on Rails (2)
фото на документы (2)
гитара (2)
bash (2)
спорт (2)
восстановить (1)
дурдом (1)
авторское право (1)
SEO (1)
сайты (1)
наука (1)
годнурас (1)
C++ (1)
технологии (1)
programming (1)
микросервисы (1)
Поиск по блогу:

Valid XHTML 1.0 Strict