Skip to content

THECALLR/sdk-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ DEPRECATED — Callr API v1 (JSON-RPC)

This SDK targets the legacy Callr JSON-RPC API (v1), which is deprecated and will be shut down on 30 June 2027. After that date this SDK will stop working.

➡️ Please migrate to the new Callr REST API v2.

Your existing API credentials work with REST API v2 — no new keys required.

Official Callr REST API v2 SDKs are coming in the near future. In the meantime, you can call the REST API directly, or generate a client from the OpenAPI 3.1 spec (see Generate a REST API v2 client today below).


Generate a REST API v2 client today

An official Callr REST API v2 SDK for Swift is coming soon. Until then, generate a fully-typed client from the OpenAPI 3.1 spec with OpenAPI Generator (requires v7.x+ for OpenAPI 3.1):

docker run --rm -v "$PWD:/local" openapitools/openapi-generator-cli generate \
  -g swift5 \
  -i https://api.callr.com/v2.0/openapi.json \
  -o /local/callr-v2-ios

Authenticate with your API Key via the x-api-key header (or HTTP Basic: Account SID + API Key). The base URL https://api.callr.com/v2.0 is baked into the generated client — see its generated docs/ for the available endpoints.


sdk-ios

SDK in Swift for THECALLR API

Basic Example (Send SMS)

See App example in ThecallrApiDemo

// Set your credentials
var api = ThecallrApi(login: "login", password: "password")

api.call("sms.send", params: "THECALLR", "+33123456789", "hello world!", ["flash_message": false])
.success({ (result) -> Void in
  println(result)
})
.failure({ (error) -> Void in
	println(error)
})

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

11 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors