Giter Club home page Giter Club logo

telesign-provider's Introduction

TelesignProvider

Swift Vapor

TelesignProvider is a Vapor wrapper around TelesignKit

Installation

In your Package.swift file, add the following

.package(url: "https://github.com/vapor-community/telesign-provider.git", from: "3.0.0-beta")

Register the provider to your Application in Configure.swift

app.register(TelesignProvider(apiKey: "YOUR_API_KEY", customerId: "YOUR_CUSTOMER_ID"))

Now we can interact with the API via the TelesignClient that's created on your behalf via the Provider we just registered.

import Telesign

let telesignClient = app.make(TelesignClient.self)

telesignClient.messaging.send(message: "Hello Vapor!", to: "1234567", messageType: .ARN)

telesign-provider's People

Contributors

andrewangeta avatar calebkleveter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

calebkleveter

telesign-provider's Issues

Can't send message

i use your example, but i got error in console

Run[66991:364202] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=66991
Run[66991:364202] SecTaskCopyDebugDescription: Run[66991]/0#-1 LF=0

do you know how to fix it?

Decoding Error When Sending SMS

Currently I am getting this error everytime i send a SMS but the text still goes through everytime (so far)

@Andrewangeta - this is what you asked me about in Discord

[ ERROR ] DecodingError.keyNotFound: Value required for key 'status.updated_on'. (Logger+LogError.swift:17)

Getting Invalid Signature from Telesign

Hi, I have been using this successfully for a while now, but for some reason my SMS request are no longer working. Here is what I'm getting back from Telesign:

{\"status\":{\"code\":10008,\"description\":\"Invalid Signature.\",\"updated_on\":\"2019-11-01T00:26:16Z\"}}

I'm not sure if this means the provider is no longer pulling my credentials, or something to do with how the provider is adding the authentication to the headers.

Once in a blue moon the request succeeds for some reason and I get the text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.