GuidesRecipesAPI EndpointsRelease NotesCommunity
Log In
API Endpoints

Create a new Twitter connector

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Create a new connector in your Layar instance.

🚧

Twitter Connectors Only

The ConnectorApi class only pertains to Twitter connectors, whereas the LiveSourceApi class covers all other available Layar connectors.

Python SDK

Endpoint Method

Authentication

Before running your API calls, remember to authenticate!

Import Dependencies

Make sure at the top of your script you've got the relevant dependencies:

# import dependencies
import layar_api
from layar_api.rest import ApiException
from pprint import pprint

Instantiate API & Build Request Body

When creating a new Connector, you can send a request body filled in with any of the Connector object properties.

For Twitter connectors, there are two required parameters: the connector_type and the keyword_filters. However, we recommend at least providing the connector with a name, so that you can retrieve it using other methods in the future. The following endpoints are autogenerated by Layar after your request has been made: created_by_user, date_indexed, and id. These cannot be changed by a user.

# Instantiate API endpoint
api_instance = layar_api.ConnectorApi(layar_api.ApiClient(configuration))

# Provide Parameters for Request Body

Run API Call

Body Params
string
enum
Allowed:
string
string

Layar Connector ID

string

Name provided by a user to a given Layar Connector

Responses

401

Unauthorized

403

Forbidden

404

Not Found

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json