Skip to main content
Known Participant
October 24, 2021
Answered

Calling API

  • October 24, 2021
  • 2 replies
  • 390 views

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

 

This topic has been closed for replies.
Correct answer Meng Zhiqun

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?

2 replies

Meng Zhiqun
Meng ZhiqunCorrect answer
Inspiring
October 29, 2021

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?

Known Participant
October 30, 2021

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

Mylenium
Legend
October 24, 2021

You create a socket in your script and call the URL.

 

Mylenium

Known Participant
October 26, 2021

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