User getPointsUsedInPeriod

From Catglobe Wiki
Jump to: navigation, search



User_getPointsUsedInPeriod

Get points the user used in a period time

Syntax

User_getPointsUsedInPeriod (number userRId, arrayDateTime From, arrayDateTime To);

Arguments

userRId: number. User resource id

From: DateTime array. From period

'To': DateTime array. To period

Return type

Number

Example

DateTime dtFrom = new DateTime("2013/9/1");
DateTime dtTo = new DateTime("2013/9/30");
User_getPointsUsedInPeriod(10768810, dtFrom.AsArray, dtTo.AsArray);