<div dir="ltr">Hi,<div>I want to write a wrapper for the GitHub API. I have never actually written a wrapper before so I wanted to know if there is any specific design methodology that we have to follow for writing a wrapper.</div><div>The Github API as I see returns a JSON object as the response after we send a request to it. I tried writing a script for reading that response.</div><div><br></div><div><div>#lang racket</div><div><br></div><div>(require net/url)</div><div>(require json)</div><div><br></div><div>(define input </div><div>  (get-pure-port </div><div>   (string->url "<a href="https://api.github.com/users/some_username">https://api.github.com/users/some_username</a>")))</div><div>(define response (port->string input))</div><div>(close-input-port input)</div><div><br></div><div>(define x (string->jsexpr response))</div><div>(for (((key val) (in-hash x)))</div><div>  (printf "~a = ~a~%" key val))</div></div><div><br></div><div>Please tell me this method is correct or not? Is this how we start writing a wrapper?</div><div><br></div><div>Thanks!</div></div>