Latest 3.1.3
Homepage https://github.com/venmo/VENCore
License MIT
Platforms ios 7.1
Dependencies CMDQueryStringSerialization
Authors

VENCore Build Status Coverage Status

VENCore is the core Objective-C client library for the Venmo API. If you’re looking for a simple way to send Venmo payments & charges from your iOS app, you should use the Venmo iOS SDK.

Usage

Initialization

// Create a VENCore instance
VENCore *core = [[VENCore alloc] init];

// Give it an access token
[core setAccessToken:accessToken];

// Set the default core
[VENCore setDefaultCore:core];

Sending a transaction

// Create a request
VENCreateTransactionRequest *transactionService = [[VENCreateTransactionRequest alloc] init];

// Add a note
transactionService.note = @"hi";

// Add a target
VENTransactionTarget *target = [[VENTransactionTarget alloc] initWithHandle:@"[email protected]" amount:30];
[transactionService addTransactionTarget:target];

// Send the request
[transactionService sendWithSuccess:^(NSArray *sentTransactions, VENHTTPResponse *response) {
    // :)
} failure:^(NSArray *sentTransactions, VENHTTPResponse *response, NSError *error) {
    // :(
}];

Latest podspec

{
    "name": "VENCore",
    "version": "3.1.3",
    "summary": "Core Venmo client library",
    "description": "Core iOS client library for the Venmo api",
    "homepage": "https://github.com/venmo/VENCore",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Venmo": "[email protected]"
    },
    "platforms": {
        "ios": "7.1"
    },
    "source": {
        "git": "https://github.com/venmo/VENCore.git",
        "tag": "v3.1.3"
    },
    "source_files": "VENCore/**/*.{h,m}",
    "dependencies": {
        "CMDQueryStringSerialization": [
            "~> 0.4"
        ]
    }
}

Pin It on Pinterest

Share This