Click or drag to resize
RallyRestApiGetSubscription Method
Get the current subscription

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public Object GetSubscription(
	params string[] fetchedFields
)

Parameters

fetchedFields
Type: SystemString
An optional list of fields to be fetched

Return Value

Type: Object
A DynamicJsonObject that contains the currently logged in user.
Exceptions
ExceptionCondition
RallyUnavailableExceptionRally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information.
RallyFailedToDeserializeJsonThe JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
Examples
C#
DynamicJsonObject subscription = restApi.GetSubscription("Name", "FormattedID");
string subscriptionName = subscription["Name"];
string subscriptionFormattedID = subscription["FormattedID"];
See Also