Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"username": "demo@email.com",
"email": "admin@example.com",
"password": "password"
}
29 changes: 15 additions & 14 deletions python-examples/captcha-solving-auth-example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# captcha-solving-auth-example Intuned project

E-commerce scraper automation to demonstrate our captcha solving and stealth mode capabilities for cloudflare with a real example
E-commerce scraper automation to demonstrate our captcha solving and stealth mode capabilities for cloudflare with a real example.
It uses `wait_for_captcha_solve()` in the create api (`auth-sessions/create.py`) to automatically solve captchas during login.

## Run on Intuned

Expand All @@ -12,19 +13,20 @@ Open this project in Intuned by clicking the button below.

To get started developing browser automation projects with Intuned, check out our [concepts and terminology](https://docs.intunedhq.com/docs/getting-started/conceptual-guides/core-concepts#runs%3A-executing-your-automations).


## Development

> **_NOTE:_** All commands support `--help` flag to get more information about the command and its arguments and options.
> **_NOTE:_** All commands support `--help` flag to get more information about the command and its arguments and options.

### Install dependencies

```bash
uv sync
```

After installing dependencies, `intuned` command should be available in your environment.

### Run an API

```bash
# List products
uv run intuned run api list .parameters/api/list/default.json
Expand All @@ -34,6 +36,7 @@ uv run intuned run api details .parameters/api/details/default.json
```

### Deploy project

```bash
uv run intuned deploy
```
Expand All @@ -42,15 +45,14 @@ uv run intuned deploy

This project uses Intuned browser SDK. For more information, check out the [Intuned Browser SDK documentation](https://docs.intunedhq.com/automation-sdks/overview).




## Project Structure

The project structure is as follows:

```
/
├── apis/ # Your API endpoints
│ └── ...
├── apis/ # Your API endpoints
│ └── ...
├── auth-sessions/ # Auth session related APIs
│ ├── check.py # API to check if the auth session is still valid
│ └── create.py # API to create/recreate the auth session programmatically
Expand All @@ -59,15 +61,15 @@ The project structure is as follows:
└── Intuned.jsonc # Intuned project configuration file
```


## `Intuned.jsonc` Reference

```jsonc
{
// Your Intuned workspace ID.
// Your Intuned workspace ID.
// Optional - If not provided here, it must be supplied via the `--workspace-id` flag during deployment.
"workspaceId": "your_workspace_id",

// The name of your Intuned project.
// The name of your Intuned project.
// Optional - If not provided here, it must be supplied via the command line when deploying.
"projectName": "your_project_name",

Expand Down Expand Up @@ -98,7 +100,7 @@ The project structure is as follows:
// "API" type requires implementing "auth-sessions/create.ts" API to create/recreate the auth session programmatically.
// "MANUAL" type uses a recorder to manually create the auth session.
"type": "API",


// Recorder start URL for the recorder to navigate to when creating the auth session.
// Required if "type" is "MANUAL". Not used if "type" is "API".
Expand All @@ -114,7 +116,7 @@ The project structure is as follows:
// Only applicable for "MANUAL" type.
"browserMode": "fullscreen"
}

// API access settings
"apiAccess": {
// Whether to enable consumption through Intuned API. If this is false, the project can only be consumed through jobs.
Expand All @@ -131,4 +133,3 @@ The project structure is as follows:
"region": "us"
}
```

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"username": "demo@email.com",
"email": "admin@example.com",
"password": "password"
}
34 changes: 15 additions & 19 deletions typescript-examples/captcha-solving-auth-example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# captcha-solving-auth-example Intuned project

E-commerce scraper automation to demonstrate our captcha solving capabilities for cloudflare with a real example
E-commerce scraper automation to demonstrate our captcha solving capabilities for cloudflare with a real example.
It uses `wait_for_captcha_solve()` in the create api (`auth-sessions/create.py`) to automatically solve captchas during login.

## Run on Intuned

Expand All @@ -12,12 +13,12 @@ Open this project in Intuned by clicking the button below.

To get started developing browser automation projects with Intuned, check out our [concepts and terminology](https://docs.intunedhq.com/docs/getting-started/conceptual-guides/core-concepts#runs%3A-executing-your-automations).


## Development

> **_NOTE:_** All commands support `--help` flag to get more information about the command and its arguments and options.
> **_NOTE:_** All commands support `--help` flag to get more information about the command and its arguments and options.

### Install dependencies

```bash
# npm
npm install
Expand All @@ -26,8 +27,7 @@ npm install
yarn
```

> **_NOTE:_** If you are using `npm`, make sure to pass `--` when using options with the `intuned` command.

> **_NOTE:_** If you are using `npm`, make sure to pass `--` when using options with the `intuned` command.

### Run an API

Expand All @@ -48,6 +48,7 @@ yarn intuned run api details .parameters/api/details/default.json
```

### Deploy project

```bash
# npm
npm run intuned deploy
Expand All @@ -57,22 +58,18 @@ yarn intuned deploy

```




### `@intuned/browser`: Intuned Browser SDK

This project uses Intuned browser SDK. For more information, check out the [Intuned Browser SDK documentation](https://docs.intunedhq.com/automation-sdks/overview).




## Project Structure

The project structure is as follows:

```
/
├── apis/ # Your API endpoints
│ └── ...
├── apis/ # Your API endpoints
│ └── ...
├── auth-sessions/ # Auth session related APIs
│ ├── check.ts # API to check if the auth session is still valid
│ └── create.ts # API to create/recreate the auth session programmatically
Expand All @@ -81,15 +78,15 @@ The project structure is as follows:
└── Intuned.jsonc # Intuned project configuration file
```


## `Intuned.jsonc` Reference

```jsonc
{
// Your Intuned workspace ID.
// Your Intuned workspace ID.
// Optional - If not provided here, it must be supplied via the `--workspace-id` flag during deployment.
"workspaceId": "your_workspace_id",

// The name of your Intuned project.
// The name of your Intuned project.
// Optional - If not provided here, it must be supplied via the command line when deploying.
"projectName": "your_project_name",

Expand Down Expand Up @@ -120,7 +117,7 @@ The project structure is as follows:
// "API" type requires implementing "auth-sessions/create.ts" API to create/recreate the auth session programmatically.
// "MANUAL" type uses a recorder to manually create the auth session.
"type": "API",


// Recorder start URL for the recorder to navigate to when creating the auth session.
// Required if "type" is "MANUAL". Not used if "type" is "API".
Expand All @@ -136,7 +133,7 @@ The project structure is as follows:
// Only applicable for "MANUAL" type.
"browserMode": "fullscreen"
}

// API access settings
"apiAccess": {
// Whether to enable consumption through Intuned API. If this is false, the project can only be consumed through jobs.
Expand All @@ -153,4 +150,3 @@ The project structure is as follows:
"region": "us"
}
```