🔥Camp Network SDK
Welcome to the CampNetwork SDK documentation!
The campnetwork SDK is designed to make integrating social media data directly into your applications as easy as possible. With this SDK, you can quickly access Spotify, Twitter, Tiktok, and other social media data through our APIs.
This guide will walk you through how to integrate the SDK with a sample component using Twitter data.
Modules
Core | React |
---|---|
|
|
Installation
Importing Modules
CommonJS
ES6
Authentication
Auth
: Authenticate users with methods likeconnect
,disconnect
, andgetLinkedSocials
.Use with wallet providers like MetaMask.
Social APIs
TwitterAPI
Fetch user data, tweets, followers, and more.
Example:
SpotifyAPI
Fetch saved tracks, played tracks, and playlists.
Example:
React Integration
Setup
Wrap your app with
CampProvider
:
Authentication UI
Use the
CampModal
component for a ready-made authentication interface:
Hooks
useAuth
: Access the Auth instance.useAuthState
: Monitor authentication state.useSocials
: Check linked social accounts.useProviders
: Fetch available wallet providers.
Development
Building the SDK
Link SDK Locally
For detailed examples and descriptions refer to README at https://github.com/campaign-layer/camp-sdk
Last updated