Marketing API
Reviews
List All Reviews
this endpoint ( get get ) retrieves all your reviews the response is paginated; therefore, you should use the 'page' parameter for navigating through the results in subsequent requests on successful completion, it returns an array of review object docid\ ut r nbc0l9mwx9fmkasf , the number of available results and the flags used for filtering query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 50 and if it defaults to 10 from appendix docid\ kfbmx4q3dxjtduqf75yx1 start date used for filtering to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering product id if provided, it will return the reviews associated with the product customer id if provided, it will return the reviews of the customer invoice id if provided, it will return the reviews for this invoice order determines in which order the results are returned the available options are asc (ascending) and desc (descending) the default value is desc require "uri" require "net/http" url = uri("https //api tamio com/v2/reviews/list?page=1\&per page=10") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body curl location request get 'https //api tamio com/v2/reviews/list?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/reviews/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "reviews" \[ { "id" "27f391da e91a 4914 8cda a34f91991558", "review text" "the practical application did not meet expectations ", "rating" 3, "created at" 1678460644, "customer" { "id" "a38f68fb 23f8 409d 93d4 86386a0e6441", "name" "john", "email" "john\@doe com" }, "invoice" { "id" "f59a3fa2 b708 419c a572 5f7250b18f3a", "prefix" "tma", "number" 587, "date bought" 1670857723 }, "product" { "id" "23394936 4a08 4622 b357 3a0fcd7d2b5b", "name" "ebook how to tame lions " } } ], "total results" 1, "status" 200, "page" 1, "per page" 10 }