New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mite-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mite-api

Simple Node.js module to access the mite-api.

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
140
-6.67%
Maintainers
1
Weekly downloads
 
Created
Source

mite-api

Simple Node.js module to access the mite-api.

Getting Started

Install the module with: npm install mite-api

var miteApi = require('mite-api');
var mite = miteApi({
    account: 'account',
    apiKey: 'apiKey',
    applicationName: 'applicationName'
});

miteApi(options)

Available options are:

  • account - the name of your mite account
  • apiKey - your personal API-Key
  • applicationName - your application name. The mite-api wants to be identify all apps. Also the applicationName is set as the User-Agent-header in every request.
  • query - if set to true the apiKey is added to the url as api_key parameter. Otherwise the apiKey is in the X-MiteApiKey-header.

API-Methods

The optional options-object is passed as query parameters to the api-url. For example you can add properties to limit the output. See the mite-api for more information.

var options = {
    limit: 100,
    page: 2
};

// more complex example (http://mite.yo.lk/en/api/time-entries.html)
var options = {
    customer_id: 1,
    billable: true,
    from: '2012-01-01',
    to: '2012-12-31',
    group_by: 'project'
};

The done callback is called when the request has finished. The first parameter is an err and the second the result of the api-call.

  • mite.getAccount()
  • mite.getMyself()
  • mite.getTimeEntries([options], done)
  • mite.getDailyTimeEntries(year, month, day, [options], done)
  • mite.getTimeEntry(id, [options], done)
  • mite.addTimeEntry(entry, done)
  • mite.updateTimeEntry(id, entry, done)
  • mite.deleteTimeEntry(id, done)
  • mite.getUsers([options], done)
  • mite.getArchivedUsers([options], done)
  • mite.getUser(id, [options], done)
  • mite.getCustomers([options], done)
  • mite.getArchivedCustomers([options], done)
  • mite.getCustomer(id, [options], done)
  • mite.addCustomer(customer, done)
  • mite.updateCustomer(id, customer, done)
  • mite.deleteCustomer(id, done)
  • mite.getProjects([options], done)
  • mite.getArchivedProjects([options], done)
  • mite.getProject(id, [options], done)
  • mite.addProject(project, done)
  • mite.updateProject(id, project, done)
  • mite.deleteProject(id, done)
  • mite.getServices([options], done)
  • mite.getArchivedServices([options], done)
  • mite.getService(id, [options], done)
  • mite.addService(service, done)
  • mite.updateService(id, service, done)
  • mite.deleteService(id, done)

License

Licensed under the MIT license.

Copyright (c) 2013 Marcel Meyer kontakt@devdu.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FAQs

Package last updated on 12 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts