Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

How do I get, manipulate and include data on a GRAV page?

Solved by Karmalakas View solution

Started by Ricardo 5 years ago · 7 replies · 1179 views
5 years ago

Hi,
I would like to know the best approach/architecture to do the following tasks in GRAV?
1 - Get data from an API REST
2 - Data manipulation
3 - Include the data on a page.

Thanks in advanced!!

5 years ago

In short - plugin. Not sure what to add here more :) Really depends on your specific needs.

👍 1
5 years ago

Thanks for your response,
I will try to give you more details...

  • Connect to the API through OAuth 2.0. (request in JSON format)
  • Then translate some ids. (Maybe the best approach is to have some flat files with the translations)
  • and finally show the data in a table format.

Please let me know if you need more detail for some point.

5 years ago

Well.. I don't think you'll get someone here to write a plugin for you made specifically to your needs (unless agreed to some terms). Every API is different. Also even oAuth flow might differ from service to service. Not sure what you mean by ID translation, but outputting data is easy. Making API calls also shouldn't be very difficult. The most complex would be the oAuth flow, but as I said, you just have to read the docs of API and implement it. I guess it would require some redirects and what not to make it work.

👍 1
5 years ago

Thanks again,
No, it was not the goal of the post ;-) Just I want to be sure that there is no longer a plugin that provide a short solution to my requeriments.

I have read some post, but I did not find an approach similar to my requeriments. Just last question (I hope that it is not too much) could you provide the links to the documentation of the topics that you mention in your previous post?

Thanks in advanced.

5 years ago

I'm not sure I mentioned any topics :) Which part of my post are you referring to?

@Doskin:
I want to be sure that there is no longer a plugin

Were there used to be some plugin?

5 years ago

Refering the topics, I mean if there any documentation (in Grav) for outputting data, Making API calls, oAuth,...

Sorry I mean to say if there was already a plugin ;-)

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 17 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago