Get Language and Set Language
Request Parameters:
Get total language available in store and also set the language
URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/SetLanguage
Parameter:
{
"apiSecretKey": "k117x118z122r116t100e100r118j122",
"storeId": "1",
"languageId":"1",
"customerId":"1"
}
Response:
{
"SetLanguageResult": "Language set successfully"
}
Request Parameters:
URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/GetLanguage
Parameter:
{
"apiSecretKey": "k117x118z122r116t100e100r118j122",
"storeId": "1",
"languageId":"1"
}
Response:
{
"GetLanguageResult":
{
"Id": 0,
"Message": "Only one language available",
"AvailableLanguages":
[
{
"CustomProperties":
[
],
"Id": 1,
"FlagImageFileName": "us.png",
"Name": "English"
}
],
"CurrentLanguageId": 1,
"UseImages": false
}
}