Thirukkural

БЕСПЛАТНО
От Thiru Thiruvalluvar | Обновлено месяц назад | Education
Health Check

N/A

ПРОЧТИ МЕНЯ

To begin using the API, you will need to obtain an Application ID. Get your application id https://getthirukkural.appspot.com/#contact.

API Endpoint:
https://getthirukkural.appspot.com/api/3.0/kural/{number}?appid={appid}&format={format}&jsoncallback={callbackfunction}

  • The REQUIRED parameter {number} is used to specify the kural number.
  • The REQUIRED parameter {appid} is used to specify your Application ID.
  • The optional parameter format is used to specify a response format.
  • The optional parameter jsoncallback is used to specify a function wrapper.

In all requests,
Replace {number} with any of 2 valid values:

"200" - To fetch particular Kural by number use any Integer between 1 to 1330.
"rnd" - To fetch random Kural use string "rnd"

Replace {appid} with valid application id and replace {format} with either “xml” or “json”.

{callbackfunction}
If you just want the JSON, with function wrapper, define your own callback function name. To define your own callback function name, add the parameter jsoncallback with your desired name as the value. Apparently you must use json as a format if you want use jsoncallback.
jsoncallback=parseMe -> parseMe({…});

Sample JSON Response

{
	paal: "அறத்துப்பால்",
	iyal: "இல்லறவியல்",
	athigaram: "வெஃகாமை",
	number: 178,
	line1: "அஃகாமை செல்வத்திற்கு யாதெனின் வெஃகாமை",
	line2: "வேண்டும் பிறன்கைப் பொருள்.",
	translation: "The mark of lasting wealth is shown By not coveting others' own",
	urai1: "தன்னுடைய செல்வச் செழிப்பு குறையாமலிருக்க வேண்டுமென்றால் பிறருடைய பொருளையும் தானே அடைய வேண்டுமென்று ஆசைப்படாமலிருக்க வேண்டும்.",
	urai1Author: "பேராசிரியர் சாலமன் பாப்பையா",
	urai2: "ஒருவனுடைய செல்வத்திற்குக் குறைவு நேராதிருக்க வழி எது என்றால், அவன் பிறனுடைய கைப்பொருளை விரும்பாதிருத்தலாகும்.",
	urai2Author: "கலைஞர் மு.கருணாநிதி",
	urai3: "செல்வம் குறையாமல் இருக்க வழி என்ன என்றால், பிறனுக்கு உரிய பொருளை விரும்பாமல் இருப்பதே.",
	urai3Author: "டாக்டர் மு. வரதராசன்"
}
Подписчики: 3
Ресурсы:
Сайт продукта Условия использования
Создатель API:
Rapid account: Thiru Thiruvalluvar
Thiru Thiruvalluvar
getkural
Войдите, чтобы оценить API
Оценки: 5 - Голосов: 1