Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

segmentio/public-api-sdk-swift

Repository files navigation

⚠️ This SDK is currently released asPublic Beta. Its use in critical systems is discouraged, butfeedback is welcome.

Overview

The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. The full documentation is available athttps://docs.segmentapis.com.

All endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace.

See the next sections for more information on how to use the Segment Public API Swift SDK.

Latest API and SDK version: 58.13.0

Installation

Add the following entry to yourPackage.swift file:

.package(name:"PublicApi", url:"git@github.com:segmentio/public-api-sdk-swift.git", branch:"master")

You are now ready to start making calls to Public API!

Example

import PublicApiPublicApiAPI.basePath="https://api.segmentapis.build"PublicApiAPI.customHeaders=["Authorization":"Bearer <TOKEN>"]SourcesAPI.listSources(pagination:PaginationInput(count:10), completion:{ data, errorinif error!=nil{print(error!)}if data!=nil{print("\n These are the sources:")print(data!.data!.sources)}})

Contributing

The contents of this repository are automatically generated, so we can't take contributions from external developers. If you have any issues with this SDK, please raise an issue or reach out tofriends@segment.com instead of opening a pull request. Pull requests will not be reviewed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp