Skip to content

Commit

Permalink
Deprecate EntryEndpoint.entry_translations
Browse files Browse the repository at this point in the history
Oxford Dictionaries is updating their API to a new version which
includes quite a few changes:
https://developer.oxforddictionaries.com/version2

They are moving the translations functionality to its own endpoint
(instead of having part of the entries endpoint).
  • Loading branch information
swcraig committed Jun 23, 2019
1 parent 2c904d9 commit 98cde75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/oxford_dictionary/endpoints/entry_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ def entry_antonyms_synonyms(query, params = {})
end

def entry_translations(query, params = {})
warn '''
Client#entry_translations is DEPRECATED and will become non-functional
on June 30, 2019. Use Client#translation instead. Reference
https://github.com/swcraig/oxford-dictionary/pull/12 for more
information. Check out OxfordDictionary::Endpoints::Translations for the
interface to use.
'''
params.key?(:translations) || params[:translations] = 'es'
entry_request(query, params)
end
Expand Down

0 comments on commit 98cde75

Please sign in to comment.