Click or drag to resize
KomfoProviderRetrieveMetricsAsync Method
Retrieves the metrics asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual Task<IEnumerable<Metric>> RetrieveMetricsAsync(
	string accessToken,
	IEnumerable<string> ids,
	MetricFields fields = MetricFields.All
)

Parameters

accessToken
Type: SystemString
The access token.
ids
Type: System.Collections.GenericIEnumerableString
The list of Twitter handles (without "@" character).
fields (Optional)
Type: KomfoSharp.ModelMetricFields
The fields to be retrieved and filled in the Metric.

Return Value

Type: TaskIEnumerableMetric
The metrics list. If no metrics are retrieved an empty list is returned.

Implements

IKomfoProviderRetrieveMetricsAsync(String, IEnumerableString, MetricFields)
Examples
var metrics = await komfoProvider.RetrieveMetricsAsync("<your_access_token>", new[] { "dkoroedova", "bkoroedova" });
foreach (var metric in metrics)
{
  this.ShowMetric(metric);
}
See Also