Context
Reuse custom cookies, authentication, and cached data for your requests
Note: This feature is currently enabled for selected users only. To request access, please contact us at info@olostep.com.
With contexts you can pass custom cookies to the API. This allows you to reuse cookies, authentication, and stored data for your API requests.
This is useful to preserve authentication and session data between requests without needing to log in repeatedly, or to reuse cached data for subsequent requests.
Creating a Context
Here is how you can create a context to pass custom cookies to the API:
- Install the Olostep browser plugin from here: Olostep browser plugin
- Visit the website for which you want to save the cookies/authentication
- Login to the website with the credentials you want to save
- Click on the Olostep plugin icon and select “Submit Context”
- Copy the context_id (which will be something like
ctx_yylqbfayto
) from the plugin and use it in your API requests
Using Context in the API requests
Conclusion
With context you are applying the same cookies and authentication to the API requests as the one you have saved via the browser plugin. This allows you to reuse cookies, authentication, and stored data for your API requests.
To get access to this feature reach out to us at info@olostep.com