GET cre/goal/{secretKey}?DisplayFields={DisplayFields}&NoneDisplayFields={NoneDisplayFields}&SortFields={SortFields}&Limit1={Limit1}&Limit2={Limit2}&LanguageId={LanguageId}&IsWriteLogSQL={IsWriteLogSQL}

This function will get the goal list

Request Information

URI Parameters

NameDescriptionTypeAdditional information
secretKey

is used to authenticate user

string

Required

DisplayFields

List of fields need to be displayed

string

None.

NoneDisplayFields

Gets or sets the none display fields.

string

None.

SortFields

Sort Conditions

string

None.

Limit1

Get the list of items that their indexes larger than or equal this value

integer

None.

Limit2

Get the list of items that their indexes less than or equal this value

integer

None.

LanguageId

1: NL, 2: FR, 3: EN, Default value = 1

integer

None.

IsWriteLogSQL

Write sql query for debug

boolean

None.

Body Parameters

None.

Response Information

Resource Description

Return goal list

ReturnResultOfWsListOfCREGoal
NameDescriptionTypeAdditional information
Success

Value = true is successful (If this value = false, then we should see Code and Message to have more info about error.)

boolean

None.

Code

It's error code (If value = 0, it's successful)

integer

None.

Message

It's error message (If value = empty, it's successful).

string

None.

Value

Data which you need to get.

WsListOfCREGoal

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Code": 2,
  "Message": "sample string 3",
  "Value": {
    "Items": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "RowsCount": 1,
    "From": 2,
    "To": 3
  }
}

application/xml, text/xml

Sample:
<ReturnResultOfWsListOfCREGoalOpzxWdDHOpzxWdDH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmnicasaApiv3.Models">
  <Code>2</Code>
  <Message>sample string 3</Message>
  <Success>true</Success>
  <Value>
    <From>2</From>
    <Items>
      <CREGoal>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </CREGoal>
      <CREGoal>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </CREGoal>
    </Items>
    <RowsCount>1</RowsCount>
    <To>3</To>
  </Value>
</ReturnResultOfWsListOfCREGoalOpzxWdDHOpzxWdDH>