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 🙏

© 2024 – Pkg Stats / Ryan Hefner

recycle_api

v1.0.0

Published

An_API_that_provides_life_cycle_information_on_a_make_and_model_of_a_handset_organized_by_district__kommune__The_terminals_are_grouped_in_10_buckets_and_they_start_their_life_when_they_come_online_the_first_time__When_the_first_terminal_of_a_make_and_mode

Downloads

6

Readme

recycle_api

RecycleApi - JavaScript client for recycle_api An API that provides life cycle information on a make and model of a handset, organized by district (kommune). The terminals are grouped in 10 buckets, and they start their life when they come online the first time. When the first terminal of a make and model comes online, this is the market introduction point. Later when terminals come online they enter bucket 0, and when they are gone/missing for more than 2 weeks, they are considered dead, and placed in bucket 9. In between a moving average is calculated and a terminal is placed in the corresponding bucket. The timespan from birth to death is continually updated, and the buckets are updated accordingly. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-10-27T10:39:22.759Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit http://apigw.telenor.no

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install recycle_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/recycle_api then install it via:

    npm install YOUR_USERNAME/recycle_api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var RecycleApi = require('recycle_api');

var api = new RecycleApi.DefaultApi()

var make = "make_example"; // {String} terminal make to use (Samsung)

var model = "model_example"; // {String} terminal model to use (Galaxy S7)

var district = 3.4; // {Number} target district (kommune) https://www.ssb.no/offentlig-sektor/kommunekatalog


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPetsById(make, model, district, callback);

Documentation for API Endpoints

All URIs are relative to https://localhost/v1

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- RecycleApi.DefaultApi | getPetsById | GET /terminal/information | Find information

Documentation for Models

Documentation for Authorization

inventoryImplicit

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://apigw.telenor.no/oauth/v2/authorize
  • Scopes:
    • user: Grants read/write access to profile info only. Note that this scope includes user:email and user:follow.
    • user:email: Grants read access to a user’s email addresses.
    • user:follow: Grants access to follow or unfollow other users.
    • public_repo: Grants read/write access to code, commit statuses, and deployment statuses for public repositories and organizations.
    • repo: Grants read/write access to code, commit statuses, and deployment statuses for public and private repositories and organizations.
    • repo_deployment: Grants access to deployment statuses for public and private repositories. This scope is only necessary to grant other users or services access to deployment statuses, without granting access to the code.
    • repo:status: Grants read/write access to public and private repository commit statuses. This scope is only necessary to grant other users or services access to private repository commit statuses without granting access to the code.
    • delete_repo: Grants access to delete adminable repositories.
    • notifications: Grants read access to a user’s notifications. repo also provides this access.
    • gist: Grants write access to gists.
    • read:repo_hook: Grants read and ping access to hooks in public or private repositories.
    • write:repo_hook: Grants read, write, and ping access to hooks in public or private repositories.
    • admin:repo_hook: Grants read, write, ping, and delete access to hooks in public or private repositories.
    • read:org: Read-only access to organization, teams, and membership.
    • write:org: Publicize and unpublicize organization membership.
    • admin:org: Fully manage organization, teams, and memberships.
    • read:public_key: List and view details for public keys.
    • write:public_key: Create, list, and view details for public keys.
    • admin:public_key: Fully manage public keys.