API endpoints

Phoca Download - download manager
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

API endpoints

Post by AlainR »

Hi.
I see on the site an API for Phoca Download and I wish I could use it to recover:
  • file name
  • the description
  • the file link
  • the date of publication
  • and the end date of publication
I would greatly appreciate any help or references to the appropriate documentation or examples that could guide me in resolving this.
Many thanks in advance.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: API endpoints

Post by Jan »

Hi, which site do you exactly mean?

Jan
If you find Phoca extensions useful, please support the project
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

Re: API endpoints

Post by AlainR »

Hi.
In the footer of your website : https://imgur.com/a/nfa5Zzi
https://www.phoca.cz/apis/4-phocadownload

EDITED:
Image
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

Re: API endpoints

Post by AlainR »

And I don't understand if PhocaDownload API works like J! API (webservice?).
I begin to discover API and now I'm able to collect some articles for an app and I want to do the same for some files.
Thank you in advance for your help.
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

Re: API endpoints

Post by AlainR »

Off topic: link above "How to add screenshot to post" https://www.phoca.cz/documents/50-phoca ... forum-post doesn't work. But I find it on page https://www.phoca.cz/documentation/86-j ... forum-post
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: API endpoints

Post by Jan »

Hi
no, these pages are a list of classes and methods of individual components. Except for Phoca Cart, none of the components have a webservices api.

There is no problem to see screenshots per link but you should be able just to add the link to the bb img tags and it should be displayed correctly :idea: But not the link to image website should be added but the link to image itself, example:

This is link to image website
https://imgur.com/a/nfa5Zzi
This is link to image directly, which can be added to bb img tags:
https://i.imgur.com/Em4R5A9.png
If you find Phoca extensions useful, please support the project
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

Re: API endpoints

Post by AlainR »

Hi,
Thank you for your answer. I understand that there is no API for Phoca Download. Is it possible to activate an RSS feed? Or something else?

In off topic, I just wanted to point out that your link "How to add screenshot to post", below the title "Quick reply" or title "Post a reply" displays an error page.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: API endpoints

Post by Jan »

Hi, thank you for the info about the 404 (fixed). In Phoca Download, there is RSS for displaying latest files - in File module (not sure if this is what you mean): https://www.phoca.cz/phoca-download-file-module

Jan
If you find Phoca extensions useful, please support the project
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 24 Jul 2018, 16:33

Re: API endpoints

Post by AlainR »

Hi. Yes, it seems to meet our needs. Can we see the RSS part of this module in action on a site?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: API endpoints

Post by Jan »

Hi, you can see the demo here:
https://www.phoca.cz/demo/
right bottom, there is even the RSS Link, which goes to:
https://www.phoca.cz/demo/phoca-downloa ... d&type=rss

Jan
If you find Phoca extensions useful, please support the project
Post Reply