Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.84 KB

File metadata and controls

48 lines (40 loc) · 1.84 KB
id single-and-collection-clients
title Single and collection clients

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock';

import CollectionAsyncExample from '!!raw-loader!./code/02_collection_async.py'; import CollectionSyncExample from '!!raw-loader!./code/02_collection_sync.py'; import SingleAsyncExample from '!!raw-loader!./code/02_single_async.py'; import SingleSyncExample from '!!raw-loader!./code/02_single_sync.py';

The Apify client interface is designed to be consistent and intuitive across all of its components. When you call specific methods on the main client, you create specialized clients to manage individual API resources. There are two main types of clients:

{CollectionAsyncExample} {CollectionSyncExample}

The resource ID can be the resource's id or a combination of username/resource-name.

{SingleAsyncExample} {SingleSyncExample}

By utilizing the appropriate collection or resource client, you can simplify how you interact with the Apify API.