Advertisement
Guest User

Untitled

a guest
Mar 1st, 2018
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.49 KB | None | 0 0
  1. Customer Registration | Customer Login
  2. Logo easy code platform
  3.  
  4. Home
  5. get verification code
  6. New hands helping
  7. common problem
  8. API interface
  9. Card business to join
  10. Contact Customer Service
  11.  
  12. API Interface Overview
  13. Login interface
  14. Get account information interface
  15. Get phone number interface
  16. Get SMS interface
  17. Send SMS interface
  18. Get the sending status interface
  19. Release phone number interface
  20. Pull black phone interface
  21. Return code comparison table
  22. Province code query
  23. Sample code
  24.  
  25. API Interface Document # 007612
  26.  
  27. Easy code sms platform open interface overview
  28. Date: 2/10/2015
  29.  
  30. Open interface to developers to provide the platform SMS service calls, the interface call sequence:
  31. 1, login get token
  32. 2, access to account information (not required, do not need to call)
  33. 3, get the phone number
  34. 4, the use of mobile phone number (will be obtained in this platform to fill in the phone number you want to verify the site or APP), the other side prompts that the number is not available then pull the black regained
  35. 5, receiving (sending) text messages (usually to receive the verification message sent by the other party, if you need to send the specified content before sending the call to send the interface)
  36. 6, receiving (sending) success, release the number, the failure is to pull the black number.
  37.  
  38. Special Note:
  39. 1, the success of the interface call will return "success" or "success |" at the beginning of the return value, if failed, then return the corresponding [error code];
  40. 2, access to the number within 10 minutes has not been released by the user, the system will be forced to release;
  41. 3, after using the number, please release or pull the black, otherwise the number occupied up to the ceiling will not be able to continue to take the number;
  42. 4, pull the black number, no separate call release interface, the system automatically release the number;
  43.  
  44. Interface communication rules:
  45. 1, Communication: The platform uses HTTP protocol (GET / POST) communication
  46. 2, API interface address: http://api.fxhyd.cn/UserInterface.aspx
  47. 3, call the way: GET / POST
  48. 4, the default encoding: UTF8 (GB2312 please add the encode parameter encode = gb2312)
  49. 5, the interface address and parameters are not case-sensitive;
  50.  
  51. Login interface
  52. Date: 2/10/2015
  53.  
  54. By account, password for communication token token. This parameter is required for all interface calls except login. Token can also be obtained after login and used directly, that does not need to call the interface to obtain.
  55. Mandatory Type Field name Name Description
  56. √ string action interface type fixed value: login
  57. √ String username Username Customer's account on this platform
  58. √ String password password Customer's password on this platform
  59.  
  60. Interface example:
  61.  
  62. http://api.fxhyd.cn/UserInterface.aspx?action=login&username= your account & password = your password
  63.  
  64. return value:
  65.  
  66. Login success: success | token
  67. Login failed: error code, please according to different error code for different processing.
  68. Get account information interface
  69. Date: 2/10/2015
  70.  
  71. Get the current user's account information.
  72. Mandatory Type Field name Name Description
  73. √ string action interface type fixed value: getaccountinfo
  74. √ String token Token value obtained by token login interface
  75. × integer format return format The value is 1, the system returns JSON format data, otherwise the system returns a format "|" split string.
  76.  
  77. Interface example:
  78.  
  79. http://api.fxhyd.cn/UserInterface.aspx?action=getaccountinfo&token=TOKEN
  80.  
  81. return value:
  82.  
  83. Request parameters format! = 1: success | User name | Account status | Account level | Account balance | Frozen amount | Account discount | Get the maximum number of numbers, "|" is the delimiter (default data format)
  84. Request parameter format = 1: success | JSON format data
  85. Request failed: error code, please according to different error code for different processing.
  86. Get phone number interface
  87. Date: 2/10/2015
  88.  
  89. Specify the number filter rules, get the phone number.
  90. Mandatory Type Field name Name Description
  91. √ string action interface type fixed value: getmobile
  92. √ String token Token value obtained by token login interface
  93. √ Integer itemid Item Number The corresponding number of the item
  94. × integer isp Carrier code The carrier code to which the code belongs. 1: Mobile, 2: Unicom, 3: Telecom
  95. × Integer provincial province code number belongs to the province code, province code table.
  96. × integer City code number Attribution city code, province code table.
  97. × Integer mobile specified number to specify the number to be obtained, the number must be the number of the platform.
  98. × Strings excludeno Excluding Numbering Sections Do not get the numbers of segments 170, 171 and 188, then this parameter is 170 | 171 | 180 or 170_171_180. Some IOS systems are not compatible with "|".
  99.  
  100. Interface example:
  101.  
  102. http://api.fxhyd.cn/UserInterface.aspx?action=getmobile&token=TOKEN&itemid= Item Number & excludeno = Exclude Number
  103.  
  104. return value:
  105.  
  106. Get success: success | phone number
  107. Request failed: error code, please according to different error code for different processing.
  108. Get SMS interface
  109. Date: 2/10/2015
  110.  
  111. After you use the retrieved phone number, call this interface to get the text message. Due to the possible delay of SMS, it is recommended to call every 5 seconds and call for more than 60 seconds (to increase the success rate of acquisition).
  112. Mandatory Type Field name Name Description
  113. √ string action interface type fixed value: getsms
  114. √ String token Token value obtained by token login interface
  115. √ Integer itemid Item Number The corresponding number of the item
  116. √ integer mobile phone number to get SMS phone number.
  117. × integer release automatically release the number of identifier If the value of this parameter is 1, get the message while the system will release the phone number. To continue using this number, do not include this parameter.
  118.  
  119. Interface example:
  120.  
  121. http://api.fxhyd.cn/UserInterface.aspx?action=getsms&token=TOKEN&itemid= item number & mobile = phone number & release = 1
  122.  
  123. return value:
  124.  
  125. Received SMS: success | SMS content
  126. SMS has not yet arrived: 3001, should continue to call the SMS interface, until the timeout.
  127. Request failed: error code, please according to different error code for different processing.
  128. Send SMS interface
  129. Date: 2/10/2015
  130.  
  131. Send a message to the corresponding number of the project, the receiving number is fixedly set in the project, and the receiving number can not be specified at will.
  132. Mandatory Type Field name Name Description
  133. √ string action interface type fixed value: sendsms
  134. √ String token Token value obtained by token login interface
  135. √ Integer itemid Item Number The corresponding number of the item
  136. √ integer mobile phone number to get SMS phone number.
  137. √ string sms send content to send SMS content, it is recommended to send content URL encoding, to avoid parameter errors caused by special symbols.
  138.  
  139. Interface example:
  140.  
  141. http://api.fxhyd.cn/UserInterface.aspx?action=sendsms&token=TOKEN&itemid= Item Number & mobile = Mobile Number & sms = Sending Content
  142.  
  143. return value:
  144.  
  145. Submit success: success, where the return success only said that the successful submission of the sending task, does not mean that the message has been successfully sent, get the results of the transmission, please call "Get SMS Send Results" interface.
  146. Request failed: error code, please according to different error code for different processing.
  147. Get texting result interface
  148. Date: 2/10/2015
  149.  
  150. Get the status of sending SMS, SMS sent due to a certain delay, it is recommended to call once every 5 seconds, call 120 seconds.
  151. Mandatory Type Field name Name Description
  152. √ string action interface type fixed value: getsendsmsstate
  153. √ String token Token value obtained by token login interface
  154. √ Integer itemid Item Number The corresponding number of the item
  155. √ integer mobile phone number refers to the phone number you use to send SMS.
  156.  
  157. Interface example:
  158.  
  159. http://api.fxhyd.cn/UserInterface.aspx?action=getsendsmsstate&token=TOKEN&itemid= Item Number & mobile = Phone Number
  160.  
  161. return value:
  162.  
  163. Successfully sent: success
  164. Waiting to send: 3002, indicating that the message is waiting to be sent
  165. Sending: 3003, indicating that the message is being sent
  166. Failed to send: 3004, indicating that the SMS has failed to be sent
  167. Request failed: error code, please according to different error code for different processing.
  168. Release the phone number interface
  169. Date: 2/10/2015
  170.  
  171. Release the specified phone number. If the number is no longer used, please release it in time, otherwise the number you have not released will not be able to get the new number after reaching the upper limit.
  172. Mandatory Type Field name Name Description
  173. √ string action interface type fixed value: release
  174. √ String token Token value obtained by token login interface
  175. √ Integer itemid Item Number The corresponding number of the item
  176. √ integer mobile phone number to get SMS phone number.
  177.  
  178. Interface example:
  179.  
  180. http://api.fxhyd.cn/UserInterface.aspx?action=release&token=TOKEN&itemid= Item Number & mobile = Phone Number
  181.  
  182. return value:
  183.  
  184. Successfully released: success
  185. Request failed: error code, please according to different error code for different processing.
  186. Pull black phone number interface
  187. Date: 2/10/2015
  188.  
  189. If the number can not be used, please blacklist the number and will not be able to retrieve it later.
  190. Mandatory Type Field name Name Description
  191. √ string action interface type fixed value: addignore
  192. √ String token Token value obtained by token login interface
  193. √ Integer itemid Item Number The corresponding number of the item
  194. √ integer mobile phone number to get SMS phone number.
  195.  
  196. Interface example:
  197.  
  198. http://api.fxhyd.cn/UserInterface.aspx?action=addignore&token=TOKEN&itemid= Item Number & mobile = Phone Number
  199.  
  200. return value:
  201.  
  202. Successfully released: success
  203. Request failed: error code, please according to different error code for different processing.
  204. The system returns an error code comparison table
  205. Date: 2/10/2015
  206.  
  207. In some cases, the system will return the number of the code, according to the following table to query its meaning.
  208. 1001: Parameter token can not be empty
  209. 1002: parameter action can not be empty
  210. 1003: parameter action error
  211. 1004: token failure
  212. 1005: user name or password is wrong
  213. 1006: user name can not be empty
  214. 1007: password can not be empty
  215. 1008: Account balance is not enough
  216. 1009: Account is disabled
  217. 1010: Parameter error
  218. 1011: Account to be audited
  219. 1012: The number of logins has reached the upper limit
  220. 2001: Parameter itemid can not be empty
  221. 2002: The project does not exist
  222. 2003: The project is not enabled
  223. 2004: No numbers available yet
  224. 2005: The number of get numbers has reached the limit
  225. 2006: parameter mobile can not be empty
  226. 2007: number has been released
  227. 2008: number is offline
  228. 2009: sending content can not be empty
  229. 2010: number is in use
  230. 3001: have not received the message
  231. 3002: Waiting to send
  232. 3003: Sending
  233. 3004: Sending failed
  234. 3005: Order does not exist
  235. 3006: Exclusive channel does not exist
  236. 3007: Exclusive Channel is not enabled
  237. 3008: Exclusive channel password does not match item
  238. 9001: system error
  239. 9002: system is abnormal
  240. 9003: The system is busy
  241. Province code
  242. Date: 2/10/2015
  243.  
  244. If you need to get the phone number of the designated area, please check the corresponding province code by region.
  245. please choose:
  246. Province code:
  247. Copyright © 2015-2018 Easy code verification code receiving platform
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement