Sage.PL.WebAPI.Interface.Common.Interfaces Namespace > ICurrencyRatesController Interface > ICurrencyRatesController Methods > GetListByCurrency Method 

Drukuj

.NET Framework Class Library

ICurrencyRatesController.GetListByCurrency Method

Metoda umożliwia pobranie listy kursów waluty z podanego przedziału czasowego.

[GET] /api/CurrencyRates/Filter?currencyId=id_waluty&dateFrom=data_od&dateTo=data_do

Namespace: Sage.PL.WebAPI.Interface.Common.Interfaces

Assembly:  Sage.PL.WebAPI.Interface.Common (in Sage.PL.WebAPI.Interface.Common.dll) Version: 24.2.1.0 (24.2.1.0)

Syntax

Visual Basic

Function GetListByCurrency ( _
 currencyId As Integer, _
 Optional dateFrom As Nullable(Of DateTime) = Nothing, _
 Optional dateTo As Nullable(Of DateTime) = Nothing _
As IHttpActionResult

C#

IHttpActionResult GetListByCurrency(
 int currencyId,
 Nullable<DateTimedateFrom = null,
 Nullable<DateTimedateTo = null
)

Visual C++

IHttpActionResultGetListByCurrency(
 int currencyId,
 Nullable<DateTimedateFrom = nullptr,
 Nullable<DateTimedateTo = nullptr
)

JavaScript

function getListByCurrency(currencyIddateFromdateTo);

Parameters

currencyId

Type: System.Int32

[FromUri] Id waluty.

dateFrom (Optional)

Type: System.Nullable(DateTime)

[FromUri] Data od przedziału czasowego. W przypadku, gdy parametr nie zostanie podany wyszukane zostaną wszystkie kursy waluty do wskazanej daty do. Data paramteru powinna zostać podana w formacie yyyy-MM-dd.

dateTo (Optional)

Type: System.Nullable(DateTime)

[FromUri] Data do przedziału czasowego. W przypadku, gdy parametr nie zostanie podany wyszukane zostaną wszystkie kursy waluty od wskazanej daty od. Data paramteru powinna zostać podana w formacie yyyy-MM-dd.

Return Value

Zwraca kolekcję obiektów CurrencyRate.

See Also

ICurrencyRatesController Interface

ICurrencyRatesController Members

Sage.PL.WebAPI.Interface.Common.Interfaces Namespace