Hi i have some json data i have to give input body to postman while making rest api call, so how can make this in ruby ?
how can a send input body while making rest api call?
below is the my input data
{“reportRequests”:[{“viewId”:“185966546”,“dateRanges”:[{“endDate”:“yesterday”,“startDate”:“yesterday”}],“metrics”:[{“expression”:“ga:sessions”},{“expression”:“ga:bounces”},{“expression”:“ga:entrances”},{“expression”:“ga:pageviews”},{“expression”:“ga:uniquePageviews”},{“expression”:“ga:timeOnPage”},{“expression”:“ga:exits”}],“dimensions”:[{“name”:“ga:dateHour”},{“name”:“ga:pagePath”},{“name”:“ga:pageTitle”},{“name”:“ga:landingPagePath”},{“name”:“ga:secondPagePath”},{“name”:“ga:exitPagePath”},{“name”:“ga:previousPagePath”}],“pageToken”:“1”,“pageSize”:“100”,“samplingLevel”:“LARGE”}]}