Logly lift.json API for Lift Mobile SDK
This ObjC package is automatically generated by the Swagger Codegen project:
- API version: 1.0.1
- Package version: 0.9.12.2
- Build package: io.swagger.codegen.languages.ObjcClientCodegen
The SDK requires ARC (Automatic Reference Counting) to be enabled in the Xcode project.
Install from Github using CocoaPods
Add the following to the Podfile:
pod 'LoglyLift', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'To specify a particular branch, append , :branch => 'branch-name-here'
To specify a particular commit, append , :commit => '11aa22'
Install from local path using CocoaPods
Put the SDK under your project folder (e.g. /path/to/objc_project/Vendor/LoglyLift) and then add the following to the Podfile:
pod 'LoglyLift', :path => 'Vendor/LoglyLift'Import the following:
#import <LoglyLift/LGApiClient.h>
#import <LoglyLift/LGDefaultConfiguration.h>
// load models
#import <LoglyLift/LGInlineResponse200.h>
#import <LoglyLift/LGInlineResponse200Items.h>
// load API classes for accessing endpoints
#import <LoglyLift/LGDefaultApi.h>
It's recommended to create an instance of ApiClient per thread in a multi-threaded environment to avoid any potential issues.
Please follow the installation procedure and then run the following:
NSNumber* *adspotId = @789; // Lift adspot ID
NSNumber* *widgetId = @789; // Lift wiget ID
NSString* *url = @"url_example"; // キーとなるページ URL (MDL)
NSString* *ref = @"ref_example"; // リファラーURL(通常Mobileでは必要なし) (optional)
NSString* *toplevel = @"items"; // jsonトップレベルhash名: 通常は'items'を指定 (optional) (default to items)
LGDefaultApi *apiInstance = [[LGDefaultApi alloc] init];
// Liftレコメンデーション結果検索
[apiInstance requestLiftWithAdspotId:adspotId
widgetId:widgetId
url:url
ref:ref
toplevel:toplevel
completionHandler: ^(LGInlineResponse200* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
All URIs are relative to https://l.logly.co.jp
| Class | Method | HTTP request | Description |
|---|---|---|---|
| LGDefaultApi | requestLift | GET /lift.json | Liftレコメンデーション結果検索 |
All endpoints do not require authorization.