KahunaSocialMedia 0.1.15

KahunaSocialMedia 0.1.15

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 2.3

Maintained by Siddharth Chopra.



  • By
  • siddharthchopra

LogCamp

KahunaSocialMedia is written in Swift

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

Give a reference of sqlite db

SocialDataHandler.sharedInstance.initSqliteName(kSqliteName)

Set Server URL

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

To fetch from our server or social media server

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

Note: Add import KahunaSocialMedia into respected file

Retrieve Twitter Feeds from twitter server or from our server

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

Retrieve Facebook Feeds from facebook server or from our server

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

Retrieve Instagram Feeds from instagram server or from our server

socialHandler.initAllInstagramKeys(instaURL)
socialHandler.getInstagramFeeds()

Retrieve Youtube Feeds from youtube server or from our server

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()

Author

siddharthchopra, [email protected]

License

KahunaSocialMedia is available under the MIT license. See the LICENSE file for more info.