Copy link to clipboard
Copied
So basically I'd like to call the API of Payhip ( site where you can sell stuff )
is there anyways I can do that with extendscript?
whole documentation : https://help.payhip.com/article/114-software-license-keys
I made a post similar recently but wasn't really clear, so here's exactly what I'm looking for!
I don't know much about all of that API stuff so please explain it in the easiest way
Thanks in advance,
RedyMotion
AFAIK, extendscript sockets only supports http and non SSL. I've only able to found a way to get through that by Coppieter's GetURL method and grefel/restix. Coppetier's GetURL is like a yearly refresh thing which you need to email him to get the license or something like that. Grefel/restix however only works with Indesign. So if you want anything, you might need to do a bridgetalk() between AE and ID to have them communicate with each other after fetch info online. This is part 1 of the equati
...Copy link to clipboard
Copied
You create a socket in your script and call the URL.
Mylenium
Copy link to clipboard
Copied
Hey!
First of all, thank you so much! As I said, I'm really new to all of this... Can you just send me a line of code doing that?
Thanks,
RedyMotion
Copy link to clipboard
Copied
AFAIK, extendscript sockets only supports http and non SSL. I've only able to found a way to get through that by Coppieter's GetURL method and grefel/restix. Coppetier's GetURL is like a yearly refresh thing which you need to email him to get the license or something like that. Grefel/restix however only works with Indesign. So if you want anything, you might need to do a bridgetalk() between AE and ID to have them communicate with each other after fetch info online. This is part 1 of the equation. However, I have no idea if this will work with your API.
API works with extensions. Have you considered that approach?
Copy link to clipboard
Copied
Thanks!
I'll take a look at bridgetalk! Yup I considered it but I don't think it's the best way of doing it for my script