Get all audit eventsGEThttps://api.courier.com/audit-eventsFetch the list of audit eventsQUERY PARAMScursorstringA unique identifier that allows for fetching the next set of audit events.Responses200 OKobjectAUTH TOKENTry ItcURLNode.jsRubyPythonGoPHPcurl --request GET \ --url https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D \ --header 'Accept: application/json' Copy// Dependencies to install:// $ npm install node-fetch --saveconst fetch = require('node-fetch');const options = { method: 'GET', headers: { Accept: 'application/json' },};fetch('https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));Copyrequire 'uri'require 'net/http'require 'openssl'url = URI("https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truerequest = Net::HTTP::Get.new(url)request["Accept"] = 'application/json'response = http.request(request)puts response.read_bodyCopy# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D"headers = { "Accept": "application/json"}response = requests.request("GET", url, headers=headers)print(response.text)Copypackage mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}Copy<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://api.courier.com/audit-events?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D', [ 'headers' => [ 'Accept' => 'application/json', ],]);echo $response->getBody();CopyResponse Example200 OK{ "paging": { "cursor": "MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA==", "more": true }, "results": [ { "auditEventId": "ZX3xXUMNKL4y2NkiKgstl", "actor": { "id": "foo-user", "email": "joe.fake@gmail.com" }, "target": { "id": "EF607F6E84A34305AE98B6TR", "email": "jane.doe@gmail.com" }, "source": "courier.studio", "timestamp": "2022-07-05T22:30:24.662Z", "type": "user:role-changed" } ]}Copy