Skip to main content

Python Client SDK Generated by Speakeasy

Project description

Python SDK

Discover rich information on people and companies

SDK Installation

pip install structure_py

Authentication

You'll need to authenticate your requests to access any of the endpoints in the Structure API. In this guide, we'll look at how authentication works. Structure offers authentication for your API requests with a token.

OAuth2 with bearer token

Authentication with the Structure API is using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the Structure dashboard under API settings.

SDK Example Usage

import sdk
from sdk.models import operations

s = sdk.SDK(
    security=shared.Security(
        bearer_auth="",
    ),
)

req = operations.EnrichCompanyRequest(
    id='89bd9d8d-69a6-474e-8f46-7cc8796ed151',
)

res = s.companies.enrich(req)

if res.body is not None:
    # handle response

Available Resources and Operations

accounts

companies

people

user

  • login - Login user
  • me - Show current user

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !

SDK Created by Speakeasy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structure_py-0.18.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

structure_py-0.18.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file structure_py-0.18.1.tar.gz.

File metadata

  • Download URL: structure_py-0.18.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for structure_py-0.18.1.tar.gz
Algorithm Hash digest
SHA256 3592c3e9d19ceef93ed3c1f550d22c4de60150631edc26aa407577a0b858b864
MD5 e090ed9fe89cff532643ea04aca13d5e
BLAKE2b-256 33ccc2995aa68ea491151c7c0dfc7f75e84fecaff412d580193d775108391f54

See more details on using hashes here.

File details

Details for the file structure_py-0.18.1-py3-none-any.whl.

File metadata

  • Download URL: structure_py-0.18.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for structure_py-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0823d611a9cbe8a14605290a10e49f0d08978682ba9e08e0359acbb01a74f29
MD5 b5381f99dd045ef513b4754fc8cdc79c
BLAKE2b-256 21649df328fbd24e715916e99b03593da6e1fc77c69839becadede1709e60f65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page