SEND SMS WITHOUT OPENING BROWSER WINDOW

Discussion in 'Tally Developer' started by teja varma, Jan 8, 2020.

    
  1. teja varma

    teja varma Active Member


    Rise and Shine..
    Hope its useful..

    -> You Can send SMS Without need to Open Browser Window
    ->No Additional DLL's or Configuration Required
    ->Instead of Browse URL use Data Source


    ;; use the code below replace the API with Your's

    Code:
    [#Menu:GateWayOfTally]
        Add:Key Item:SEND SMS HIDE WINDOW:M:Call:PushMSG
    
    
    
    [Collection:SendMessageHideWin]
        Data Source:HTTP JSON:"https://api.textlocal.in/send?apikey=sadagjdfadhjmyapikey&numbers=91XXXXXXXXXX&sender=TXTLCL&message=TESTMSG"  ;; Replace with your API
        Client Only:Yes  
    
    [Function:PushMSG]
        01:Walk Collection:SendMessageHideWin
        02:End Walk
     


  2. sushil pote

    sushil pote New Member



    Sir how to post JSON data

    Base 64 encoded string of encrypted invoice JSON using Sek.
     


  3. Himanshu-2002

    Himanshu-2002 Active Member


    How you are encrypting the Invoice Data In Base64 ?

    There is a attribute knows as HTTP Post By Which you can send Post Request from Tally

    Tip: Tally can't post data to a https API Or In other words secure API
     


  4. sushil pote

    sushil pote New Member


    Sir..

    Is it encript base 64 when use http post
     


  5. sushil pote

    sushil pote New Member


    Sir..

    Is it encript base 64 when use http post
     


  6. Himanshu-2002

    Himanshu-2002 Active Member



  7. Himanshu-2002

    Himanshu-2002 Active Member


    As Far As I know there is no such option to encrypt data in TDL
     
    sushil pote likes this.


  8. sushil pote

    sushil pote New Member


    So how it will I do..

    I want to post json file to govt portal for genrate einvoice can u suggest me way for that
     


  9. Himanshu-2002

    Himanshu-2002 Active Member


    Create JSON File Using TDL
    Path:
    1. Watch Software Codecs ( YouTube Channel)
    Create a Exe File Which will encrypt the data and Send it to the government Website.... You can use any language which you know ( Example - Python, Java, Etc) to create the exe File.
     


  10. ROHIT JAISWAR

    ROHIT JAISWAR Active Member


    Thank you Sir for Sharing Code
    My Main Query Solved with this Code but one Doubt is When i use Message from System Formulae
    for eg.
    [System: Formula]

    Messeges : $$String:"Hi,We are Glad to Have you as our Member at Priyadarshini Park Rasikbhai Meswani Sports"+
    +"Your membership is valid from so and so months"+
    +"For any queries please contact our office"+
    +"022-23637186"

    [#Menu:GateWayOfTally]
    Add:Key Item:Welcome Message:M:Call:pushMSG



    [Collection:SendMessageHideWin]
    Data Source:HTTP JSON:"http://login.bulksmsinmumbai.com/api/mt/SendSMS
    user=Demo&password=Demo123&senderid=Demo&channel=TRANS&DCS=0&flashsms=0&number=8858918984&text="+@@Messeges+" &route=8"
    Client Only:Yes

    [Function:pushMSG]

    10 : QUERYBOX : "Send SMS ?" : Yes:No
    20 : IF : $$LastResult
    30 :Walk Collection:SendMessageHideWin
    40 :End Walk
    50 : MSGBox : "Status":"Message Sent \n Successful"
    60 : ENDIF

    & when i use hardcoded message then it is working please help Sir
     


  11. teja varma

    teja varma Active Member


    I think you need to encode the message before sending
    Code:
    $$PercEncode:"your message"
     


  12. Mac

    Mac Member


    hello , i have a question

    any option for unicode(like marathi, hindi, gujarati typing option) sms
     


Share This Page