articles
Articles
Articles
/api/{locale}/articles
Usage and SDK Samples
curl -X GET\
"{{app_url}}/api/{locale}/articles?category_id=&page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArticlesApi;
import java.io.File;
import java.util.*;
public class ArticlesApiExample {
public static void main(String[] args) {
ArticlesApi apiInstance = new ArticlesApi();
String locale = locale_example; // String |
String categoryId = categoryId_example; // String |
String page = page_example; // String |
String key = key_example; // String |
try {
apiInstance.articles(locale, categoryId, page, key);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi#articles");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ArticlesApi;
public class ArticlesApiExample {
public static void main(String[] args) {
ArticlesApi apiInstance = new ArticlesApi();
String locale = locale_example; // String |
String categoryId = categoryId_example; // String |
String page = page_example; // String |
String key = key_example; // String |
try {
apiInstance.articles(locale, categoryId, page, key);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi#articles");
e.printStackTrace();
}
}
}
String *locale = locale_example; //
String *categoryId = categoryId_example; // (optional)
String *page = page_example; // (optional)
String *key = key_example; // (optional)
ArticlesApi *apiInstance = [[ArticlesApi alloc] init];
// Articles
[apiInstance articlesWith:locale
categoryId:categoryId
page:page
key:key
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IslamicMessageApi = require('islamic_message_api');
var api = new IslamicMessageApi.ArticlesApi()
var locale = locale_example; // {{String}}
var opts = {
'categoryId': categoryId_example, // {{String}}
'page': page_example, // {{String}}
'key': key_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.articles(locale, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class articlesExample
{
public void main()
{
var apiInstance = new ArticlesApi();
var locale = locale_example; // String |
var categoryId = categoryId_example; // String | (optional)
var page = page_example; // String | (optional)
var key = key_example; // String | (optional)
try
{
// Articles
apiInstance.articles(locale, categoryId, page, key);
}
catch (Exception e)
{
Debug.Print("Exception when calling ArticlesApi.articles: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiArticlesApi();
$locale = locale_example; // String |
$categoryId = categoryId_example; // String |
$page = page_example; // String |
$key = key_example; // String |
try {
$api_instance->articles($locale, $categoryId, $page, $key);
} catch (Exception $e) {
echo 'Exception when calling ArticlesApi->articles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ArticlesApi;
my $api_instance = WWW::SwaggerClient::ArticlesApi->new();
my $locale = locale_example; # String |
my $categoryId = categoryId_example; # String |
my $page = page_example; # String |
my $key = key_example; # String |
eval {
$api_instance->articles(locale => $locale, categoryId => $categoryId, page => $page, key => $key);
};
if ($@) {
warn "Exception when calling ArticlesApi->articles: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ArticlesApi()
locale = locale_example # String |
categoryId = categoryId_example # String | (optional)
page = page_example # String | (optional)
key = key_example # String | (optional)
try:
# Articles
api_instance.articles(locale, categoryId=categoryId, page=page, key=key)
except ApiException as e:
print("Exception when calling ArticlesApi->articles: %s\n" % e)
Parameters
Name | Description |
---|---|
locale* |
String
Required
|
Name | Description |
---|---|
Key |
String
|
Name | Description |
---|---|
category_id |
String
|
page |
String
|