Player APIs (BrightScript & Ja...
JavaScript APIs
cookiestore
5min
the cookiestore object retrieves a list of cookies from the containing browser (which implies that this class is only available for code running inside a browser instance, not from ronodejs) cookiestore idl interface cookie { attribute string domain; attribute string path; attribute string name; attribute string value; }; interface cookiestore { array\<cookie> getcookies(); } object creation let cookiestoreclass = require("@brightsign/cookiestore"); let cookiestore = new cookiestoreclass(); cookie getcookies() array\<cookie> getcookies() gets cookies from the containing browser domain string string specifies the hosts that are allowed to receive the cookie, including subdomains path string string to send the cookie header, this url path must exist in the url request name string string the name of the cookie value string string the value of the cookie example to list the cookies saved on a browser instance on a console let cookiestoreclass = require("@brightsign/cookiestore"); let cookiestore = new cookiestoreclass(); let cookies = cookiestore getcookies(); cookies foreach((cookie) => {console log("cookie domain " + cookie domain + " cookie path " + cookie path + " cookie name " + cookie name + " cookie value " + cookie value)});