Code Monkey home page Code Monkey logo

node-pexels's Introduction

node-pexels

Node unofficial client for https://www.pexels.com API. Typescript definitions included.

Build Status Coverage Status

Simple api client for Pexels powered by got package.

Check out Pexels API for API usage rules and key request.

Requirements

Node 10+

Changelog

v 2.0.0

feat:

  • add video section
  • add api versioning support
  • separate api resources

docs:

  • add examples

v 1.0.0

Security updates. Removed es5 support in lib.

v 0.0.5

Fixes, deps update, etc.

v 0.0.4

Added retrieving single photo method (#1)

v 0.0.3

Some fixes in inner logic and interfaces. Added methods args validation. Some fixes in doc.

v 0.0.2

Some fixes in schema and ts definitions.

v 0.0.1

Hello, world! First version of package.

Usage

async function main() {
    const client = new Client({ apiKey: '<YOUR-API-KEY>' });
    await client.v1.photos.curated();
}
main();

For more see examples/

You can find schemas here and response example on the Pexels API page.

FAQ

Does client use http or https?

Client use https. You can use http (if you really want to) by modifying endpoint property of Client function.

node-pexels's People

Contributors

dlukanin avatar nilox94 avatar dependabot[bot] avatar flowwishthebest avatar m3lith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.