Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

  • Ben January 5
Reversing the short() function back to integer? Possible?
  • Vote Up0Vote Down kennedrwkennedrw
    Posts: 1Sendy user

    Looks like the second part of every custom sendy link inside an sent / tracked email is a subscriberid but it's been obfuscated using the short function.

    Is there a reversal function for this so I can evaluate that Sendy link and get the original subscriberid?

    I am writing an integration and using the referral links to get the Sendy links and then using custom SQL to get the Sendy info but it first requires me to convert this subscriberid info back into it's actual format from the database.

    Thanks Ben. You're the awesomest for the work you do.

  • 1 Comment
  • Vote Up0Vote Down BenBen
    Posts: 3,447Sendy support


    You can check out the /includes/helpers/short.php script. This is the script that encrypts and decrypts the IDs.

    For example short(1) encrypts the ID.

    And short(5uPzZQVcrDSy, true) decrypts the ID.

    You're the awesomest for the work you do.

    Thank you for your kind words. :)

    Best regards,

This discussion has been closed.
All Discussions