Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Calling API

Explorer ,
Oct 23, 2021 Oct 23, 2021

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

RedyMotion_0-1635052945899.png

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

 

TOPICS
FAQ , How to , Scripting
289
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Oct 29, 2021 Oct 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 equati

...
Translate
LEGEND ,
Oct 23, 2021 Oct 23, 2021

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

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 26, 2021 Oct 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 29, 2021 Oct 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 30, 2021 Oct 30, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines