KahunaSocialMedia 0.1.15

KahunaSocialMedia 0.1.15

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布版最新发布版2017年9月
SwiftSwift 版本2.3

Siddharth Chopra 维护。



  • 作者:
  • siddharthchopra

LogCamp

KahunaSocialMedia 使用 Swift 编写

示例

要运行示例项目,先从仓库克隆,然后从 Example 目录中首先运行 pod install

要求

安装

KahunaSocialMedia 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中

pod 'KahunaSocialMedia', '~> 0.1.15’

注意:您需要通过 Xcode.app 更新最新的 xcode 名称,它应该位于您的应用程序文件夹中

为 sqlite 数据库提供引用

SocialDataHandler.sharedInstance.initSqliteName(kSqliteName)

设置服务器 URL

let socialHandler = SocialOperationHandler.sharedInstance
socialHandler.socialDelegate = self
socialHandler.initServerBaseURL(kServerBaseURL)

从我们的服务器或社交媒体服务器获取

socialHandler.isLoadFromServer = true (i.e. our server and false for social media server)

注意:将导入 KahunaSocialMedia 添加到对应的文件中

从 Twitter 服务器或从我们的服务器检索 Twitter 动态

socialHandler.initAllTwitterKeys(kTwitterURL, tweetAccessToken: kTweetAccessToken, tweetSecretKey: kTweetAccessTokenSecret, tweetConsumerKey: kTweetConsumerKey, tweetConsumerSecret: kTweetConsumerSecret, tweetOwnerSecretName: kTweetOwnerScreenName, tweetSlugName: kTweetSlugName)
socialHandler.getTwitterFeeds() 

从 Facebook 服务器或从我们的服务器检索 Facebook 动态

socialHandler.initAllFacebookKeys(kFbGraphURL, fbFromName: kFbFromName, fbAppSecret: kFbAppSecret, fbAppID: kFbAppID)
socialHandler.getFacebookFeeds()

从 Instagram 服务器或从我们的服务器检索 Instagram 动态

socialHandler.initAllInstagramKeys(instaURL)
socialHandler.getInstagramFeeds()

从 YouTube 服务器或从我们的服务器检索 YouTube 动态

基于用户频道检索

socialHandler.initAllYoutubeKeys(kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: kUserChannelId, userChannelOnly:true , isLoadFromSubscriptions: "false")
socialHandler.getYouTubeFeeds()

基于用户订阅频道检索

socialHandler.initAllYoutubeKeys(kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: "", userChannelOnly:false , isLoadFromSubscriptions: isLoadFromSubscriptions)
socialHandler.getYouTubeFeeds()

作者

siddharthchopra, [email protected]

授权协议

KahunaSocialMedia可用于MIT授权协议。更多信息请参阅LICENSE文件。