npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@datafire/nexmo_media

v3.0.0

Published

DataFire integration for Media API

Readme

@datafire/nexmo_media

Client library for Media API

Installation and Usage

npm install --save @datafire/nexmo_media
let nexmo_media = require('@datafire/nexmo_media').create();

.then(data => {
  console.log(data);
});

Description

The Media API can be used to query, download and delete media items such as audio files for use with other Nexmo APIs.

Actions

.get

Retrieve information about multiple media items with the ability to search and paginate.

nexmo_media..get({}, context)

Input

  • input object
    • order string (values: ascending, descending): The order of search results.
    • page_index integer: Which page to retrieve in pagination
    • page_size integer: How many items at most per page
    • start_time string: Retrieve results created on or after this timestap.
    • end_time string: Retrieve results created on or before this timestamp.

Output

  • output object
    • _embedded object: A collection of media items. See retrieve a media item for a description of the returned fields
    • _links object
      • first object
        • href string
      • last object
        • href string
      • self object
        • href string
    • count integer: The total number of records returned by your request.
    • page_index integer: The page_index used in your request.
    • page_size integer: The amount of records returned in this response.

_id.delete

Delete a previously created media item by ID.

nexmo_media._id.delete(null, context)

Input

This action has no parameters

Output

Output schema unknown

_id.info.get

Retrieve information about a single media item

nexmo_media._id.info.get(null, context)

Input

This action has no parameters

Output

_id.info.put

Update a previously created media item by ID.

nexmo_media._id.info.put({}, context)

Input

  • input object
    • description string: A description of the media file.
    • max_downloads_allowed integer: The maximum number of times the file may be downloaded. Unlimited when not provided.
    • metadata_primary string: A string containing metadata about the media file.
    • metadata_secondary string: A string containing further metadata about the media file.
    • mime_type string: The MIME type of the media file.
    • public boolean: Whether the item is publicly available without authentication.
    • title string: A string containing a title for the media file.

Output

Output schema unknown

Definitions

Media

  • Media object
    • account_id string: The ID of your Nexmo account. This is the same as your API key.
    • etag string: An identifier for the content. This will change if the content of the file has been changed (i.e. if you upload a new version of the file). For more information see Wikipedia: HTTP ETag
    • id string: A UUID representing the object.
    • max_downloads_allowed integer: The maximum number of times the file may be downloaded.
    • media_size integer: The size of the file in bytes
    • metadata_primary string: A user set string containing metadata about the media file.
    • metadata_secondary string: A user set string containing further metadata about the media file.
    • mime_type string: The IETF MIME type of the file.
    • original_file_name string: The filename of the object as it was originally uploaded.
    • public boolean: Whether the item is available for download without authentication.
    • store_id string: An internal identifier of how the file is stored.
    • time_created string: A timestamp for the time that the file was created
    • time_last_updated string: A timestamp for the time that the file was last modified
    • times_downloaded integer: The number of times the file has been downloaded.