@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)))
I would say, an intriguing challenge to solve, because I find myself not worrying about other things when the problem is interesting. Of course, all our tools help, but I believe it's the problem and the path to the solution that makes your day.