Skip to content

An Early release of the api client library, this time in Ruby.

License

Notifications You must be signed in to change notification settings

nestorw/Pearson-Api-Sdk-Ruby

 
 

Repository files navigation

A Ruby Client Library for accessing the Pearson API

Setting up API and client details.

After loading pearson_sdk.rb:

APIs

See the individual API documentation (TravelAPI, DictionaryAPI, etc.) to see how to use the Pearson API SDK for specific APIs.

Searching

Searching is fundamental to making the most of the Pearson APIs. See the SEARCHING documentation for hints on how to search for content and make the best use of the available search options.

Usage

In your Gemfile:

gem 'pearson_sdk', :git => 'https://github.com/PearsonAPI/Pearson-Api-Sdk-Ruby'

In your code:

require 'pearson'
api = Pearson::FTArticles.new("your api key")
request = api.articles.search(search: "chicken")
p request['results']

article = api.articles.get_by_id('cqDaKgypN5')
paragraphs = article['result']['text']

About

An Early release of the api client library, this time in Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%