All Projects â†’ approveapi â†’ approveapi-go

approveapi / approveapi-go

Licence: other
A Go library for using ApproveAPI

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to approveapi-go

Parse Dashboard For Ios
A beautiful mobile client for managing your Parse apps while you are on the go! Now you can easily view and modify your data in the same way you would on the offical desktop client.
Stars: ✭ 81 (+406.25%)
Mutual labels:  api-client, developer-tools
Hoppscotch
👽 Open source API development ecosystem https://hoppscotch.io
Stars: ✭ 34,569 (+215956.25%)
Mutual labels:  api-client, developer-tools
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+5381.25%)
Mutual labels:  api-client, developer-tools
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+331475%)
Mutual labels:  api-client, developer-tools
doccano-client
A simple client wrapper for doccano API.
Stars: ✭ 52 (+225%)
Mutual labels:  api-client
AutoBrew
AutoBrew: Homebrew deployments made easy
Stars: ✭ 71 (+343.75%)
Mutual labels:  developer-tools
TyStrings
strings file tool for iOS / macOS developers
Stars: ✭ 15 (-6.25%)
Mutual labels:  developer-tools
dotfiles
My personal app/env configs and dotfiles.
Stars: ✭ 27 (+68.75%)
Mutual labels:  developer-tools
Mac-OS-Setup-Applications
👾 All I need to setup a new Mac and the applications I use everyday as a Web Developper
Stars: ✭ 96 (+500%)
Mutual labels:  developer-tools
HaloSharp
A C# wrapper for the Halo® 5 Game Data API.
Stars: ✭ 24 (+50%)
Mutual labels:  api-client
activecollab-feather-sdk
PHP SDK for ActiveCollab 5 and 6 API
Stars: ✭ 47 (+193.75%)
Mutual labels:  api-client
a12n-server
A ready-to-launch User and Authentication system for those that don't want to build it
Stars: ✭ 324 (+1925%)
Mutual labels:  2fa
SignNowNodeSDK
The Official SignNow Node.js Client Library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.
Stars: ✭ 14 (-12.5%)
Mutual labels:  api-client
zauth
2FA (Two-Factor Authentication) application for CLI terminal with support to import/export andOTP files.
Stars: ✭ 74 (+362.5%)
Mutual labels:  2fa
laravel-bitcoinrpc
Bitcoin JSON-RPC Service Provider for Laravel.
Stars: ✭ 83 (+418.75%)
Mutual labels:  api-client
hubi
Humanitarian ubiquitous language helper
Stars: ✭ 17 (+6.25%)
Mutual labels:  developer-tools
CveXplore
CveXplore
Stars: ✭ 21 (+31.25%)
Mutual labels:  api-client
genderize
Python client for the Genderize.io web service.
Stars: ✭ 59 (+268.75%)
Mutual labels:  api-client
tbot
Automation/Testing tool for Embedded Linux Development
Stars: ✭ 54 (+237.5%)
Mutual labels:  developer-tools
2FAtoTray
 Copy 2FA tokens in a click (macOS)
Stars: ✭ 13 (-18.75%)
Mutual labels:  2fa

approveapi-go

GoDoc

Go API bindings for the ApproveAPI HTTP API.

ApproveAPI is a simple API to request a user's real-time approval on anything via email, sms + mobile push.

Features

  • Send Prompt
    • web redirect actions (i.e. magic links)
    • custom approve/reject buttons
    • metadata
    • long polling
  • Retrieve Prompt
  • Check Prompt status
  • Futures support
  • Webhook callbacks

Install

Install the dependencies:

go get "github.com/approveapi/approveapi-go"

Import:

import "github.com/approveapi/approveapi-go"

Getting Started

To get started, we create a client:

client := approveapi.CreateClient("sk_test_yourapikeyhere")

Now we can make API calls. For example, let's send an approval prompt to confirm a financial transaction.

longPoll := true
prompt, _, err := client.ApproveApi.CreatePrompt(
    approveapi.CreatePromptRequest {
      User: "[email protected]",
      Body: `A transfer of $1337.45 from acct 0294 to acct 1045
          has been initiated. Do you want to authorize this transfer?`,
      ApproveText: "Authorize",
      RejectText: "Reject",
      LongPoll: &longPoll,
    },
)
if err != nil {
    fmt.Printf("%#v\n", err)
    return
}
if prompt.Answer != nil {
    if prompt.Answer.Result {
        fmt.Println("Request approved")
    } else {
        fmt.Println("Request rejected")
    }
} else {
    fmt.Println("No response yet")
}

Documentation

Full documentation is available here: approveapi.com/docs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].