@scriptonist
Software Engineer At Hasura, Hashnode Alumnus
Nothing here yet.
Nothing here yet.
Hey 馃憢 Emil Moe, an implementation in PHP would be really great. Unfortunately, I'm not an expert in PHP, but I was under the impression that there will be a GraphQL client library in the PHP ecosystem. If that's not the case then it seems like an interesting project 馃構 to me. In the meantime, we can make raw HTTP requests to the API to do our thing. Here is an example snippet which does that (pardon me! It's in JS) fetch('https://api.hashnode.com', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': "<your token here>"}, body: JSON.stringify({ query: 'query { storiesFeed(type: GLOBAL){ title } }' }), }) .then(res => res.json()) .then(res => console.log(JSON.stringify(res)))