Latest 0.1.9
Homepage https://github.com/siddharthchopra/KahunaSocialMedia
License MIT
Platforms ios 8.0
Dependencies SQLite.swift
Authors

CI Status
Version
License
Platform

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.10’

New development will happen exclusively on the master/Swift 3 branch.

Give a reference of sqlite db

SocialDataHandler.sharedInstance.initSqliteName(sqliteName: kSqliteName)

Set Server URL

let socialHandler = SocialOperationHandler.sharedInstance
socialHandler.socialDelegate = self
socialHandler.initServerBaseURL(serverBaseURL: 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(twitterURL: 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(fbGraphURL: kFbGraphURL, fbFromName: kFbFromName, fbAppSecret: kFbAppSecret, fbAppID: kFbAppID)
socialHandler.getFacebookFeeds()

Retrieve Instagram Feeds from instagram server or from our server

socialHandler.initAllInstagramKeys(instaURL: instaURL)
socialHandler.getInstagramFeeds()

Retrieve Youtube Feeds from youtube server or from our server

Retrieve based on user channel

socialHandler.initAllYoutubeKeys(youTubeURL: 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(youTubeURL: kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: "", userChannelOnly:false , isLoadFromSubscriptions: isLoadFromSubscriptions)
socialHandler.getYouTubeFeeds()

Installation

Note: KahunaSocialMedia requires Swift 3 (and Xcode 8) or greater. If you absolutely
need compatibility with Swift 2.3 you can use the swift2.3 branch by adding following line to your Podfile:

pod 'KahunaSocialMedia', '~> 0.1.12’

Author

siddharthchopra, [email protected]

License

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

Latest podspec

{
    "name": "KahunaSocialMedia",
    "version": "0.1.9",
    "summary": "KahunaSocialMedia helps to retrieve twitter, facebook, instagram and youtube data from server",
    "description": "KahunaSocialMedia helps to retrieve twitter, facebook, instagram and youtube data from server. It can be configured with a paramters.",
    "homepage": "https://github.com/siddharthchopra/KahunaSocialMedia",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "siddharthchopra": "[email protected]"
    },
    "source": {
        "git": "https://github.com/siddharthchopra/KahunaSocialMedia.git",
        "tag": "0.1.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KahunaSocialMedia/Classes/**/*",
    "dependencies": {
        "SQLite.swift": [
            "~> 0.10.1"
        ]
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "2.3"
    },
    "pushed_with_swift_version": "2.3"
}

Pin It on Pinterest

Share This