homer.favenir Posted February 23, 2012 Share Posted February 23, 2012 Hi, anyone knows where to start in learning API with php? i have this request <request> <authentication> <username>username</username> <password>password</password> </authentication> <operation>getResellerProducts</operation> <params> <int>22</int> </params> </request> and the response <?xml version="1.0" ?> <response> <params> <struct> <member name="price"><double>89.0</double></member> <member name="productId"><int>10</int></member> <member name="cost"><double>49.0</double></member> <member name="productName"><string>Basic Certificate</string></member> <member name="certType"><string>OV</string></member> </struct> <struct> <member name="price"><double>189.0</double></member> <member name="productId"><int>20</int></member> <member name="cost"><double>99.0</double></member> <member name="productName"><string>Enterprise Certificate</string></member> <member name="certType"><string>OV</string></member> </struct> <struct> <member name="price"><double>389.0</double></member> <member name="productId"><int>15</int></member> <member name="cost"><double>249.0</double></member> <member name="productName"><string>Wildcard Certificate</string></member> <member name="certType"><string>OV</string></member> </struct> <struct> <member name="price"><double>599.0</double></member> <member name="productId"><int>550</int></member> <member name="cost"><double>399.0</double></member> <member name="productName"><string>EV Certificate</string></member> <member name="certType"><string>EV</string></member> </struct> </params> </response> but i dont know how to where to start anyone who can guide me with this? tia Quote Link to comment https://forums.phpfreaks.com/topic/257606-api-in-php/ Share on other sites More sharing options...
trq Posted February 23, 2012 Share Posted February 23, 2012 What exactly is the question / problem? Quote Link to comment https://forums.phpfreaks.com/topic/257606-api-in-php/#findComment-1320346 Share on other sites More sharing options...
spiderwell Posted February 23, 2012 Share Posted February 23, 2012 API isnt a language, what you have posted looks like XML learn more Quote Link to comment https://forums.phpfreaks.com/topic/257606-api-in-php/#findComment-1320348 Share on other sites More sharing options...
homer.favenir Posted February 23, 2012 Author Share Posted February 23, 2012 this is an api of SSL getResellerProducts Get a list of all the available products, along with the price and cost of that product for the given reseller. Request Parameter Datatype Required Description rsId Integer Yes The reseller id Expected request: <request> <authentication> <username>username</username> <password>password</password> </authentication> <operation>getResellerProducts</operation> <params> <int>22</int> </params> </request> they sent me a copy of their api which will i use to integrate in a website. and i dont know where to start using their documentation of api. btw, theres more xml like that in their documentation any advice? thanks for helping Quote Link to comment https://forums.phpfreaks.com/topic/257606-api-in-php/#findComment-1320356 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.