PHP SDK

<p class="shortdesc"><a class="xref" href="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/MSC_SDK_PHP.zip" target="_blank">Click to download SDK</a></p> <div class="p"> <ol class="ol" id="PHPSDK__ol_ujk_zd5_xmb"> <li class="li">Overview<p class="p">This article describes the development and usage instructions of SDK of PHP version.</p></li> <li class="li">Environment information<div class="p"> <ul class="ul" id="PHPSDK__ul_f1s_c25_xmb"> <li class="li">PHP version: 7.1.6.</li> <li class="li">Encoding format: UTF-8.</li> <li class="li">Development tool: eclipse PHP.</li> </ul> </div></li> <li class="li">Code Description<table class="table frame-all" id="PHPSDK__table_h1j_225_xmb"><caption></caption><colgroup><col style="width:50%"><col style="width:50%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry colsep-1 rowsep-1" id="PHPSDK__table_h1j_225_xmb__entry__1">Code</th> <th class="entry colsep-1 rowsep-1" id="PHPSDK__table_h1j_225_xmb__entry__2">Description</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__1 "> <p class="p">lib</p> </td> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__2 "> <p class="p">Include currently encoded codes needed to call interfaces of Message Cloud.</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__1 "> <p class="p">SmsSendContent.php</p> </td> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__2 "> <p class="p">Encapsulate all fields needed to send short messages.</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__1 "> <p class="p">MSGOMCPClient.php</p> </td> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__2 "> <p class="p">Realize signature logic, sending short messages, querying results of sent short message, sending OTP verification codes, and verifying OTP verification codes.</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__1 "> <p class="p">TestSMSFunction.php</p> </td> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__2 "> <p class="p">An example for calling a method in MSGOMCPClient.</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__1 "> <p class="p">demo.php</p> </td> <td class="entry colsep-1 rowsep-1" headers="PHPSDK__table_h1j_225_xmb__entry__2 "> <p class="p">An example for calling a method in TestSMSFunction.</p> </td> </tr> </tbody></table></li> <li class="li">Create a development project in eclipse.<ol class="ol" type="a" id="PHPSDK__ol_ftj_m25_xmb"> <li class="li">Create a project.<img class="image" id="PHPSDK__image_bhb_q25_xmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20203112140407-10cd22709efb.png"><img class="image" id="PHPSDK__image_lwt_q25_xmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20203112140407-1545bed39b36.png"></li> <li class="li">Select the sdk_php directory.<img class="image" id="PHPSDK__image_dmd_v25_xmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20203112140407-1109efc0944b.png"></li> <li class="li">Click Finish. The code structure is shown as follows:<img class="image" id="PHPSDK__image_jx3_y25_xmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20203112140408-12996e9e96f2.png"></li> </ol></li> <li class="li"></li> </ol> </div>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products