As stated in the doc :
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Netlify {
I can’t find any example of connection, I understand that this is from open-api (swagger). But what do I need to send to create this ?
What is the difference with NewHTTPClient ?
and how I use my Netlify API id and secret here ?
I’m sorry for all the questions, but I can’t find any answer online.
Just to add here, since I can’t use the lib I’m trying to use the http library from go. I have read on your documentations that I can create a PAT and use it. But this is not working either, what I’m doing wrong here ?
Unfortunately won’t be able to help too much with the specifics of what you’re trying to achieve, however, our open-API docs in full can be found here and an API demo can be found here. I hope this helps to get you started!
Thank you for the answer @Scott
I managed to get it to work using a PAT and simple API calls with a http client, since we only need to deploy sites with our accounts. We don’t need to grant access to clients.
So far this seems to work fine for us !