[Closed] How to send an API post / get request via CRE

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Related documentation:

This topic contains 5 replies, has 2 voices, and was last updated by  Beda 4 months, 1 week ago. The support staff assigned to this topic is Beda.

Viewing 6 posts - 1 through 6 (of 6 total)
Author
Posts
#526361

I am trying to send an API post request to an external http API when the user submits a CRED form.

There's a we application we would like to integrate with our toolset app. It can handle basic CRUD API requests. What I don't know is:
How to create a post request when a user submits a cred?
How to send a get request and display it in a view via toolset?

Thanks for your help.

#526437

Beda
Forum moderator

Supporter languages: English (English ) Spanish (Español ) German (Deutsch )

Supporter Timezone: Europe/Zurich (GMT+02:00)

Toolset isn't made for this.

But you can try to use our API to hook in at the right moment and then perform your own API calls.

The CRED API is discussed here:
https://wp-types.com/documentation/programmer-reference/cred-api/

With those hooks, you can decide when to fire your own code, which you will have to code according to the API of your CRUD software/library.

#526446

Hi Beda,

So probably the best practice would be to make a wp plugin that connects both APIs?

#526448

Beda
Forum moderator

Supporter languages: English (English ) Spanish (Español ) German (Deutsch )

Supporter Timezone: Europe/Zurich (GMT+02:00)

I am not sure how your API works, but ours is a set of hooks that lets you fire some Code at a certain moment.

For example, the cred_save_data() is a hook that fires exactly when the post is saved to the Database.
This way you can wrap your own Custom Code in that hook and it will fire at that moment.

#526481

Hi Beda,
thanks for fast replies.

This is the API we're trying to connect to: https://www.matecat.com/api/docs

Any advice on how to tie this two together would be realy helpful, thanks!

#526482

Beda
Forum moderator

Supporter languages: English (English ) Spanish (Español ) German (Deutsch )

Supporter Timezone: Europe/Zurich (GMT+02:00)

This is the REST API.
Toolset does not yet support the REST for WordPress, and WordPress itself requires some add-ons as far I know.

We have plans to add REST Support, by now you can only choose in Post types whether to show or not these Posts in the REST.
But that's all, more can't be done yet.

More information about WordPress and REST is here:
https://developer.wordpress.org/rest-api/

As said, Toolset is not ready for REST yet and even if it would, it would be full custom code that we cannot provide here:
https://wp-types.com/toolset-support-policy/

Unfortunately, this is not something I can assist yet, I have to apologise.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘[Closed] How to send an API post / get request via CRE’ is closed to new replies.

Known issues and their solutions

We document known issues and their solutions in Toolset erratas. Save time by checking there first and seeing if what you are facing is a known issue. This list is kept short. We do our best to resolve all known issues with every release of Toolset plugins.

Support Policy

Toolset staff will help you use the Toolset plugins correctly, provide any information you need, help troubleshoot problems and advice on best-practices.

Please make sure to issue only one topic per each support ticket.

For more information, read our full Customer Support Policy.

Need custom programming work for your site? Check out our certified partners.