连接到用户钩子平台的官方iOS SDK。
要使用演示应用程序或将其SDK集成到您自己的移动应用中,您首先需要在管理页面上注册一个账户并创建一个应用程序记录。
一旦您创建了自己的应用程序,您将需要应用程序ID和应用程序密钥,这两个值可以在应用程序设置页面上找到。这些值将在您的移动应用程序中初始化SDK时使用。
要运行演示应用程序,您需要使用您的应用程序ID和应用程序密钥来初始化SDK。
您可以通过在AppDelegate.m文件中将ID和密钥进行硬编码来实现
[UserHook setApplicationId:@"YOUR_APP_ID" apiKey:@"YOUR_APP_KEY"];
或者,您可以在项目中添加一个名为userhook.plist的plist文件,并将ID和密钥存储在该文件中。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UserHookApplicationId</key>
<string>YOUR_APP_ID</string>
<key>UserHookApplicationKey</key>
<string>YOUR_APP_KEY</string>
</dict>
</plist>
有关如何将User Hook SDK集成到移动应用程序中的说明,请参阅文档。
Copyright (c) 2015 - present, Cullaboration Media, LLC.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.