No description, website, or topics provided.
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Guides
MoblicoSDK.xcodeproj
MoblicoSDK
ReadMe.playground
doc_files
.gitattributes
.gitignore
.jazzy.yaml
LICENSE
readme.markdown

readme.markdown

Getting Started

The MoblicoSDK has been designed to be easy to use with a simple block based interface (see example below). Setting up the SDK can be done in a few steps:

  1. Download the SDK: MoblicoSDK.zip

  2. Create a new Xcode project or open an existing project.

  3. Unzip MoblicoSDK.zip and drag MoblicoSDK.framework into your Xcode project. Be sure to enable Copy items if needed

    Drag MoblicoSDK.framework to Frameworks Enable Copy items into destination group's folder
  4. Configure MLCServiceManager with your Moblico API Key.

[MLCServiceManager setAPIKey:@"<#YOUR_API_KEY#>"];


    ```swift
MLCServiceManager.apiKey = "<#YOUR_API_KEY#>"
*Please see the `MLCServiceManager` class reference for more information and configuration options.*

Example

Once you have configured MLCServiceManager you can begin making service calls. For example, if you have set any Custom Application Settings they can be retrieved in your app asynchronously by using +[MLCSettingsService readSettings:]

// Create an instance and define the callback handler
MLCSettingsService *settingsService = 
	[MLCSettingsService readSettings:^(NSDictionary *settings,
                                       NSError *error,
                                       NNSHTTPURLResponse *response) {
	if (error) {
		NSLog(@"An error occurred: %@", [error localizedDescription]);
	}
	else {
		NSLog(@"Settings: %@", settings);
	}
}];

// Start the service asynchronously
[settingsService start];
// Create an instance and define the callback handler
let settingsService = MLCSettingsService.readSettings { (settings, error, response) in
	if let settings = settings {
		print("Settings: \(settings)")
	} else if let error = error {
		print("An error occurred: \(error)")
	}
}

// Start the service asynchronously
settingsService.start()

Carthage compatible