HTTP.call

Anywhere HTTP.call(method, url, [options], [asyncCallback]) import { HTTP } from 'meteor/http' Source Perform an outbound HTTP request. Arguments method String The HTTP method to use, such as "GET", "POST", or "HEAD". url String The URL to retrieve. asyncCallback Function Optional callback. If passed, the method runs asynchronously, instead of synchronously, and calls asyncCallback. On the client, this callback is required. Options content String String to use as the HT

HTTP.del

Anywhere HTTP.del(url, [callOptions], [asyncCallback]) import { HTTP } from 'meteor/http' Source Send an HTTP DELETE request. Equivalent to calling HTTP.call with "DELETE" as the first argument. (Named del to avoid conflict with the Javascript keyword delete) Arguments url String The URL to which the request should be sent. callOptions Object Options passed on to HTTP.call. asyncCallback Function Callback that is called when the request is completed. Required on the client.

meteor test-packages

meteor test-packages Test Meteor packages, either by name, or by directory. Not specifying an argument will run tests for all local packages. The results are displayed in an app that runs at localhost:3000 by default. If you need to, you can pass the --settings and --port arguments.

App.launchScreens

App.launchScreens(launchScreens) Set the launch screen images for your mobile app. Arguments launchScreens Object A dictionary where keys are different devices, screen sizes, and orientations, and the values are image paths relative to the project root directory. For Android, launch screen images should be special "Nine-patch" image files that specify how they should be stretched. See the Android docs. Valid key values: iphone_2x (640x960) iphone5 (640x1136) iphone6 (750x1334) iphone

check

Anywhere check(value, pattern) import { check } from 'meteor/check' Source Check that a value matches a pattern. If the value does not match the pattern, throw a Match.Error. Particularly useful to assert that arguments to a function have the right types and structure. Arguments value Any The value to check pattern Match Pattern The pattern to match value against

Blaze.Each

Client Blaze.Each(argFunc, contentFunc, [elseFunc]) import { Blaze } from 'meteor/blaze' Source Constructs a View that renders contentFunc for each item in a sequence. Arguments argFunc Function A function to reactively re-run. The function can return one of two options: An object with two fields: '_variable' and '_sequence'. Each iterates over '_sequence', it may be a Cursor, an array, null, or undefined. Inside the Each body you will be able to get the current item from the sequen

Accounts.sendResetPasswordEmail

Server Accounts.sendResetPasswordEmail(userId, [email]) import { Accounts } from 'meteor/accounts-base' Source Send an email with a link the user can use to reset their password. Arguments userId String The id of the user to send email to. email String Optional. Which address of the user's to send the email to. This address must be in the user's emails list. Defaults to the first email in the list.

template.$

Client template.$(selector) Source Find all elements matching selector in this template instance, and return them as a JQuery object. Arguments selector String The CSS selector to match, scoped to the template contents.

DDPRateLimiter

DDPRateLimiter Customize rate limiting for methods and subscriptions. By default, DDPRateLimiter is configured with a single rule. This rule limits login attempts, new user creation, and password resets to 5 attempts every 10 seconds per connection. It can be removed by calling Accounts.removeDefaultRateLimit(). Server DDPRateLimiter.addRule(matcher, numRequests, timeInterval) import { DDPRateLimiter } from 'meteor/ddp-rate-limiter' Source Add a rule that matches against a stream of ev

Accounts.findUserByEmail

Server Accounts.findUserByEmail(email) import { Accounts } from 'meteor/accounts-base' Source Finds the user with the specified email. First tries to match email case sensitively; if that fails, it tries case insensitively; but if more than one user matches the case insensitive search, it returns null. Arguments email String The email address to look for