| description | Reference documentation on loading URLs for sending, using Mindee client libraries. |
|---|---|
| icon | globe-pointer |
{% include "../../.gitbook/includes/this-is-reference-documenta....md" %}
Overall, the steps to sending an URL are:
- Load the URL, this does not download anything locally.
- Optional: adjust the source file before sending.
- Use the Mindee client instance to send the file.
In most cases you'll be loading a source file for use in the Mindee Client, take a look at the configure-the-client.md section for more info.
However, you don't actually need the client initialized to use these features, only the client library installed.
{% include "../../.gitbook/includes/file-url-technical-limitation.md" %}
{% tabs %}
{% tab title="Python" %}
Use the URLInputSource class.
from mindee import UrlInputSource
input_source = UrlInputSource(
"https://example.com/file.ext"
){% endtab %}
{% tab title="Node.js" %}
Use the URLInput class.
const inputSource = new mindee.UrlInput({
url: "https://example.com/file.ext"
});{% endtab %}
{% tab title="PHP" %}
Use the URLInputSource class.
use Mindee\Input\URLInputSource;
$inputSource = new URLInputSource(
url: "https://example.com/file.ext"
);{% endtab %}
{% tab title="Ruby" %}
require 'mindee'
input_source = Mindee::Input::Source::URLInputSource.new(
'https://example.com/file.ext'
){% endtab %}
{% tab title="Java" %}
Use the URLInputSource class.
import com.mindee.input.URLInputSource;
URLInputSource inputSource = URLInputSource
.builder("https://example.com/file.ext")
.build();{% endtab %}
{% tab title=".NET" %}
Use the URLInputSource class.
var inputSource = new UrlInputSource(
"https://example.com/file.ext");{% endtab %} {% endtabs %}