Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

0

Share

Download to read offline

הודעות OTP באמצעות SMS

Download to read offline

להלן תיעוד ה- API למימוש OTP באמצעות SMS
https://www.inforu.co.il
039415550

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

הודעות OTP באמצעות SMS

  1. 1. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il Otp Interface Purpose of service..................................................................................................................................1 Send Otp using json ...............................................................................................................................1 Simple Example.................................................................................................................................1 Advanced Example............................................................................................................................2 Response ............................................................................................................................................3 Authenticate Otp using json...................................................................................................................4 Simple Example.................................................................................................................................4 Advanced Example............................................................................................................................5 Response ............................................................................................................................................6
  2. 2. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -1- Purpose of service Sending one time password to a recipient and verifying the code that he or she enters. Note: if this option is not available to you- please contact sales department. Send Otp using json This function sends an OTP message to a customer via SMS or Email. The function generates the code automatically. The client should perform Http Post request to the following URL using UTF-8 encoding: https://capi.inforu.co.il/api/Otp/SendOtp?json= Simple Example { "User": { "UserName": "USER", "Token": "TOKEN" }, "Data": { "OtpType": "sms", "OtpValue": "0509999999" } } Explanation of parameters:  UserName – Username of the account that was supplied by InforUMobile  Token – Token of the account  OtpType– sms / mail  OtpValue– The mobile number or Email address Note: These parameters can be set in your account  Password character length (default 6 characters)  Password message sender's identification  Password expiration (default 5 minutes)
  3. 3. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -2- Advanced Example { "User": { "UserName": "USER", "Token": "TOKEN" }, "Data": { "OtpType": "sms", "OtpValue": "0509999999", "UserIP": "192.185.23.12", "UserName": "david", "RequestToken": "hfjdshn878ew" } } Explanation of advance parameters:  UserIP – (optional) The IP of the end user, for documentation only.  UserName – (optional) The UserName of end user, used to strengthen OTP authentication or for documentation such as IP  RequestToken – (optional) If you want to determine the token of OTP authentication , Otherwise the system will issue one for you
  4. 4. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -3- Response Explanation of Response: { "StatusId": 1, "StatusDescription": "OK", "DetailDescription": "Message accepted successfully", "RequestToken": "Xkjs9okhekjk", "FunctionName": "api/Otp/SendOtp", "Records": null, "ReturnData": null } 1. Status:  1 = OK  -1 = bad username or password  -92 = BadData 2. StatusDescription – Status interpretation. 3. DetailDescription – Detail Description. 4. RequestToken – Used for more accurate verification of the request. 5. FunctionName – The name of the function that you sent the request to. 6. Records – Not in use. 7. ReturnData – Not in use.
  5. 5. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -4- Authenticate Otp using json This function authenticates the code of the user entered into your system. The client should perform Http Post request to the following URL using UTF-8 encoding: https://capi.inforu.co.il/api/Otp/Authenticate?json= Simple Example { "User": { "Username": "USER", "Token": "TOKEN" }, "Data": { "OtpCode": "876432", "OtpValue": "0509999999" } } Explanation of parameters:  UserName – Username of the account that was supplied by InforUMobile  Token – Token of the account  OtpCode – The code entered by your customer  OtpValue – The mobile number or Email address
  6. 6. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -5- Advanced Example { "User": { "Username": "USER", "Token": "TOKEN" }, "Data": { "OtpCode": "876432", "OtpValue": "0509999999", "UserName": "david", "RequestToken": "hfjdshn878ew" } } Explanation of advance parameters:  UserName – (optional) Leave blank if you want to verify only by OtpCode & OtpValue. Otherwise, use the compatible field as in the SendOtp Request  RequestToken – (optional) Leave blank if you want to verify only by OtpCode & OtpValue. Otherwise, use the RequestToken that you received in the response of the SendOtp Request.
  7. 7. Version 1.1 ‫בע"מ‬ ‫ומפעלים‬ ‫מערכות‬ ‫שמיר‬ .‫ת.ד‬2097‫ציונה‬ ‫נס‬74120.‫טל‬9415550-03‫פקס‬9514736-03www.inforu.co.il -6- Response Explanation of Response: { "StatusId": 1, "StatusDescription": "OK", "DetailDescription": "", "RequestToken": null, "FunctionName": "api/Otp/Authenticate", "Records": null, "ReturnData": null } 1. Status:  1 = OK (Otp Match)  -1 = bad username or password  -98 = Expired (You can configure the time in your account)  -223 = WrongOtpValue  -220 = InvalidSecondaryPassword 2. StatusDescription – Status interpretation. 3. DetailDescription – Detail Description. 4. RequestToken – Not in use 5. FunctionName – The name of the function that you sent the request to 6. Records – Not in use 7. ReturnData – Not in use.

להלן תיעוד ה- API למימוש OTP באמצעות SMS https://www.inforu.co.il 039415550

Views

Total views

2,038

On Slideshare

0

From embeds

0

Number of embeds

1,950

Actions

Downloads

2

Shares

0

Comments

0

Likes

0

×