Video Explaining HttpPost in Tally Prime (HTTP JSON)

Discussion in 'Tally Integration' started by Devendra_Rawat, Aug 28, 2023.

    
  1. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    This video demonstrates the use of HTTP JSON for interaction between client and server using Tally as front end.


    Learn how to send JSON in body of HTTP POST request using Tally


     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    very nice and informative.
     
    Devendra_Rawat likes this.


  3. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Not really, I will have to write the script in advance, before recording the video, I missed a few important parts of the tutorial and also the flow of information is not proper
     



  4. Excellent you have given a very good narrative for all...
     
    Devendra_Rawat likes this.


  5. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Thank you very much.. Kindly share the video
     


  6. vishnu joshi

    vishnu joshi Member


    Hello Sir..
    I am trying this, how to show captcha in tally part..
    help me.
     


  7. Himanshu-2002

    Himanshu-2002 Active Member


    Simple Dll is being used to download jpeg and using graph type it is displaying it
     


  8. Devendra_Rawat

    Devendra_Rawat Well-Known Member



    Captcha comes in png file.. which is downloaded using tally function , but image conversion software was used to convert png into jpg...
     


  9. Himanshu-2002

    Himanshu-2002 Active Member


    Understood...So, You are downloading png probably using "Copy File" and Then Calling dll to convert into Jpeg and then display into report
     
    Devendra_Rawat likes this.


  10. balajimg

    balajimg Active Member


    Hey its fantastic
    Only think bothering me is how did you get image of captcha
     
    Devendra_Rawat likes this.


  11. vishnu joshi

    vishnu joshi Member


    How to Download image Automaically...
     


  12. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    in a function:
    Code:
        070    : CopyFile:@@sf_lclcSrcCaptcha:@@TxoCaptchaFetchURL  
    ;    065    : Exec Command: "@Echo off"
        075 : Exec Command Ex: @@sf_lclcMagick: @@sf_lclcSrcCaptcha + " " +@@sf_lclcJpgCaptcha

    Where @@sf_lclcSrcCaptcha is local file name (save) and @@TxoCaptchaFetchURL is url from which captcha comes.. you can see actual url in video

    Exec CommandEx was used to execute command line utility magicK.exe to covert png to jpg
     
    naren1234 likes this.


  13. Devendra_Rawat

    Devendra_Rawat Well-Known Member



    Himanshu-2002 has already mentioned the method
     


  14. Sai Vineeth

    Sai Vineeth Active Member


    we can directly change the .png to .jpg just by changing extension in filename.
    it will work beacuse both are image formats. only difference in png support transparent background.
     


  15. Devendra_Rawat

    Devendra_Rawat Well-Known Member



    No It doesn't work in Tally
     
    Sai Vineeth likes this.


  16. vishnu joshi

    vishnu joshi Member


    Thanks Sir..
     


  17. vishnu joshi

    vishnu joshi Member


    All working are fine..
    This cmd not working..
    111 : Exec Command Ex :magick.exe:"D:\Tally Projects 23-24\Standrad Module\GSTIN Search\Captcha.png"+" "+"D:\Tally Projects 23-24\Standrad Module\GSTIN Search\New.jpg"
     


  18. balajimg

    balajimg Active Member


    remove .exe
    111 : Exec Command Ex : magick : "D:\.......
     
    naren1234 likes this.


  19. balajimg

    balajimg Active Member


    How is that your INPUT form is getting refreshed with captcha even in edit mode??
     


  20. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    download the magick setup from net.. it is free

    you should use complete path and file name in exec command
     


  21. sattam

    sattam Active Member


    Dear Devendra Ji,
    Thanks for sharing your video.This is really awesome.
    Your thought is very unique.We all randomly search for free api to get gst taxpayer details
    Even I have to buy an api and I create tdl to create or alter ledger master details by GSTIN
    By seeing your video I am getting inspiration to use http request (Get/Post) and after more and more failure attempts finally I get success to get gst taxpayer details directly from govt gst portal.
    For this I have to use some python code as well to get and save captcha and cookie value.My steps are in below

    1) From Gateway of tally create a menu which call a function that delete existing captcha image and open a report in which user have to input GST number and captcha

    2)After input GST number on field accept call a function (python code) which getting captcha image in jpg format and save captcha cookie value in json file in my location

    3) on form accept call a function which store this gst number and captcha value in list variable

    4) on form accept call another function which walk collection over the saved captcha cookie json file and store the captcha cookie value in a system variable

    5)finally call the lust function which walk over the desire http collection and store gst taxpayer details value in another list variable and a collection with that list variable and display/alter the desire result in final report
    6) by this report I succeed to create taxpayer ledger master with gstin
     
    Last edited: Oct 15, 2023
    naren1234 likes this.


  22. sattam

    sattam Active Member



  23. sattam

    sattam Active Member


    Screenshot 2023-10-15 03.04.06.png
     
    psr likes this.


  24. sattam

    sattam Active Member


    Screenshot 2023-10-15 03.04.15.png
     
    psr likes this.


  25. sattam

    sattam Active Member



Share This Page