This library is not in any way related to LMG or Floatplane Media Inc.
Features/Endpoints are added as needed so if something is missing please make a Issue or fork, add it yourself and Pull Request
$ npm install floatplane
This library uses & collaborates with the Floatplane API Specification which has full documentation for most Floatplane endpoints including ones this library has not yet implemented.
import{Floatplane}from"./index.js";constfloatplane=newFloatplane();// Create a new API instance.// login -> User objectconst{ user }=awaitfloatplane.login({username: "yourUsername",password: "yourPassword",token: "yourTokenIfYouUse2Factor",});console.log(user);// Fetch User subscriptionsconstsubs=awaitfloatplane.user.subscriptions();// 20 Latest videos from first subscriptionconstvideos=awaitfloatplane.creator.blogPosts(subs[0].creator,{hasVideo: true});// Fetch all videos asynchronouslyforawait(constvideooffloatplane.creator.blogPostsIterable(subs[0].creator,{hasVideo: true})){console.log(video);}Individual classes can also be imported seperately:
import{Auth}from"floatplane/auth";The following projects use this library: