import jsonfrom notte_sdk import NotteClientnotte = NotteClient()# load the cookies from json and inject them in the sessionwith open("cookies.json", "r") as f: cookies = json.load(f)with notte.Session() as session: cookies = session.set_cookies(cookies)
import { NotteClient } from "notte-sdk";
import { readFileSync } from "fs";
const notte = new NotteClient();
// load the cookies from json and inject them in the session
const cookies = JSON.parse(readFileSync("cookies.json", "utf-8"));
await notte.Session().use(async (session) => {
await session.setCookies(cookies);
});
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
x-notte-request-origin
string | null
x-notte-sdk-version
string | null
Path Parameters
session_id
string
required
Query Parameters
update_metadata
boolean
default:true
Body
application/json
cookies
Cookie · object[]
required
Show child attributes
Response
Successful Response
success
boolean
required
Whether the operation was successful
message
string
required
A message describing the operation
Was this page helpful?
⌘I
python
import jsonfrom notte_sdk import NotteClientnotte = NotteClient()# load the cookies from json and inject them in the sessionwith open("cookies.json", "r") as f: cookies = json.load(f)with notte.Session() as session: cookies = session.set_cookies(cookies)
import { NotteClient } from "notte-sdk";
import { readFileSync } from "fs";
const notte = new NotteClient();
// load the cookies from json and inject them in the session
const cookies = JSON.parse(readFileSync("cookies.json", "utf-8"));
await notte.Session().use(async (session) => {
await session.setCookies(cookies);
});