Skip to content

Basic Library to implement API requests within tweaks

Notifications You must be signed in to change notification settings

KodeyThomas/apiCall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

apiCall

Installation

git clone https://github.com/KodeyThomas/apiCall

Clone the repo into the tweak directory and add the following to each file

Tweak.x

#import "apiCall/apiCall.h"

MakeFile

tweakName_FILES = *.x apiCall/apiCall.m

Usage

// Call apiCall via sharedInstance
NSString *POSTurl = @"http://api.url"
NSString *params = @"yourAPIparamaters"
NSMutableDictionary *API_Response = [[apiCall sharedInstance] POST_JSON:POSTurl :params];

// The POST_JSON method is a POST request 'application/json' it returns a Dictionary you can handle
// based on the content

Roadmap

Eventually, I am going to get around to finishing this library and adding XML types and GET requests

About

Basic Library to implement API requests within tweaks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published