Skip to content

sinch/sinch-sdk-python-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinch-sdk-python-snippets

Sinch Python SDK Code Snippets Repository

This repository contains code snippets demonstrating usage of the Sinch Python SDK.

Requirements

Snippets execution settings

When executing a snippet, you will need to provide some information about your Sinch account (credentials, Sinch virtual phone number, ...)

These settings can be placed directly in the snippet source code, or you can use an environment file (.env). Using an environment file allows the settings to be shared and used automatically by every snippet.

Setting Up Your Environment File

1. Rename the example file

Linux / Mac:

cp .env.example .env

Windows (Command Prompt):

copy .env.example .env

Windows (PowerShell):

Copy-Item .env.example .env

2. Fill in your credentials

Open the newly created .env file in your preferred text editor and fill in the required values (e.g., SINCH_PROJECT_ID=your_project_id).

Note: Do not share your .env file or credentials publicly.

Install dependencies using Poetry:

poetry install

Running snippets

All available code snippets are located in the snippets/ directory, structured by feature and corresponding actions.

To execute a specific snippet, navigate to the appropriate subdirectory and run:

python run python snippet.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages