{"repo":"mongodb/go-client-mongodb-atlas","free":true,"listed":false,"github":"https://github.com/mongodb/go-client-mongodb-atlas","clone":"git clone https://github.com/mongodb/go-client-mongodb-atlas.git","description":"Go Client for MongoDB Atlas","language":"Go","stars":78,"topics":["go","hacktoberfest","mongodb"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"go-client-mongodb-atlas [!WARNING] go-client-mongodb-atlas is deprecated and doesn't receive feature updates. We recommend migrating to the Atlas Go SDK for the latest changes. To learn how to migrate from go-client-mongodb-atlas to the Atlas Go SDK, see the migration guide. A Go HTTP client for the MongoDB Atlas API. Note that go-client-mongodb-atlas only supports the two most recent major versions of Go. Usage Construct a new Atlas client, then use the various services on the client to access different parts of the Atlas API. For example: The services of a client divide the API into logical chunks and correspond to the structure of the Atlas API documentation at https://docs.atlas.mongodb.com/api/. NOTE: Using the context package, one can easily pass cancellation signals and deadlines to various services of the client for handling a request. In case there is no context available, then context.Background() can be used as a starting point. Authentication The go-client-mongodb-atlas library does not directly handle authentication. Instead, when creating a new client, pass an http.Client that can handle Digest Access authentication for you. The easiest way to do this is using the digest library, but you can always use any other library that provides an http.Client . If you have a private and public API token pair (https://docs.atlas.mongodb.com/configure-api-access), you can use it with the digest library like: Note that when using an authenticated Client, all calls made by the","default_branch":null,"files":null,"tree":[],"storefront":"/r/mongodb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mongodb/go-client-mongodb-atlas/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}