Jump to content

api in php


homer.favenir

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.