popcorn_api 1.1.5
popcorn_api: ^1.1.5 copied to clipboard

Dart native
Flutter Android iOS

An easy way to get data from the Popcorn Time API. Documentation is available at https://popcorn-api.js.org/

example/Main.dart

import "package:popcorn_api/src/Popcorn.dart";
int main(){
  // get a random movie
  Popcorn.random("movie").then((c)async{
     print(c.first.item);
  });
  // get animes with keyword ga, and get a random result
  Popcorn.animes.search({
    "keywords":"ga"
  }).then((c)async{
    print(c.random.item);
  });
  // the same process work with movies
  Popcorn.movies.search({
    "keywords":"ga"
  }).then((c)async{
    print(c.random.item);
  });
  //Get result of shows, and get it array
  Popcorn.shows.search({
    "keywords":"league"
  }).then((c)async{
    print(c.array);
  });
  //Params to search() function
  Popcorn.shows.search({
    "keywords":"keywords",
    "page":1,
    "sort":"rating",
    "genre":"all"
  });
  return 0;
}
0
likes
75
pub points
0%
popularity

An easy way to get data from the Popcorn Time API. Documentation is available at https://popcorn-api.js.org/

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

acnologla2121@gmail.com

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on popcorn_api