🔥Camp Network SDK
Welcome to the CampNetwork SDK documentation!
Last updated
Welcome to the CampNetwork SDK documentation!
Last updated
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.
Core | React |
---|---|
CommonJS
ES6
Auth
: Authenticate users with methods like connect
, disconnect
, and getLinkedSocials
.
Use with wallet providers like MetaMask.
Fetch user data, tweets, followers, and more.
Example:
Fetch saved tracks, played tracks, and playlists.
Example:
Wrap your app with CampProvider
:
Use the CampModal
component for a ready-made authentication interface:
useAuth
: Access the Auth instance.
useAuthState
: Monitor authentication state.
useSocials
: Check linked social accounts.
useProviders
: Fetch available wallet providers.
For detailed examples and descriptions refer to README at https://github.com/campaign-layer/camp-sdk
@campnetwork/sdk
TwitterAPI
: Fetch user Twitter data.
SpotifyAPI
: Fetch user Spotify data.
Auth
: Authenticate users.
@campnetwork/sdk/react
CampProvider
and CampContext
for React applications.
@campnetwork/sdk/react/auth
React components and hooks for authentication.