TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2017 |
SwiftSwift Version | 2.3 |
Maintained by Siddharth Chopra.
KahunaSocialMedia is written in Swift
To run the example project, clone the repo, and run pod install
from the Example directory first.
KahunaSocialMedia is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KahunaSocialMedia', '~> 0.1.15’
Note: You need to update your latest xcode name by Xcode.app and it should by in your Application folder
SocialDataHandler.sharedInstance.initSqliteName(kSqliteName)
let socialHandler = SocialOperationHandler.sharedInstance
socialHandler.socialDelegate = self
socialHandler.initServerBaseURL(kServerBaseURL)
socialHandler.isLoadFromServer = true (i.e. our server and false for social media server)
Note: Add import KahunaSocialMedia into respected file
socialHandler.initAllTwitterKeys(kTwitterURL, tweetAccessToken: kTweetAccessToken, tweetSecretKey: kTweetAccessTokenSecret, tweetConsumerKey: kTweetConsumerKey, tweetConsumerSecret: kTweetConsumerSecret, tweetOwnerSecretName: kTweetOwnerScreenName, tweetSlugName: kTweetSlugName)
socialHandler.getTwitterFeeds()
socialHandler.initAllFacebookKeys(kFbGraphURL, fbFromName: kFbFromName, fbAppSecret: kFbAppSecret, fbAppID: kFbAppID)
socialHandler.getFacebookFeeds()
socialHandler.initAllInstagramKeys(instaURL)
socialHandler.getInstagramFeeds()
Retrieve based on user channel
socialHandler.initAllYoutubeKeys(kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: kUserChannelId, userChannelOnly:true , isLoadFromSubscriptions: "false")
socialHandler.getYouTubeFeeds()
Retrieve based on user subscriptions channel
socialHandler.initAllYoutubeKeys(kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: "", userChannelOnly:false , isLoadFromSubscriptions: isLoadFromSubscriptions)
socialHandler.getYouTubeFeeds()
siddharthchopra, [email protected]
KahunaSocialMedia is available under the MIT license. See the LICENSE file for more info.