Querying 3rd party GraphQL from WordPress
-
Besides doing raw cURL calls like
curl -d '{"query": "query { echo(message: \"Hello World\") }" }' -H "Content-Type: application/json" https://testapi.test/graphql
What would be the best way of doing the same from WordPress?
Do I need to manually parse the graphQL query, then just use
wp_remote_post
and pass the data, or is there a smarter way to do it?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Querying 3rd party GraphQL from WordPress’ is closed to new replies.