From f585c52f555a5de360a4d7778963d259f7d5ad68 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Fri, 13 Mar 2026 18:27:55 +1100 Subject: [PATCH] Deprecate paapi gem in favour of vacuum v5.0+ Amazon is shutting down PA-API v5 on May 15, 2026. Added deprecation warning on require and a notice in the README directing users to the vacuum gem which supports the new Creators API. Co-Authored-By: Claude Opus 4.6 --- README.md | 4 ++-- lib/paapi.rb | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 48990d8..3ced4ae 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Paapi +> **DEPRECATED:** Amazon is shutting down PA-API v5 on May 15, 2026 and replacing it with the [Creators API](https://webservices.amazon.com/paapi5/documentation/). This gem will stop working after that date. Please migrate to the [Vacuum gem (v5.0+)](https://github.com/hakanensari/vacuum), which already supports the new API. + `paapi` is a slim wrapper around [Amazon's Product Advertising API 5.0](https://webservices.amazon.com/paapi5/documentation/). [![Build Status](https://travis-ci.org/dkam/paapi.svg?branch=master)](https://travis-ci.org/dkam/paapi) -If this gem doesn't meet your needs, try the [Vacuum gem](https://github.com/hakanensari/vacuum). - ## Installation Add this line to your application's Gemfile: diff --git a/lib/paapi.rb b/lib/paapi.rb index e87eb4f..261b314 100644 --- a/lib/paapi.rb +++ b/lib/paapi.rb @@ -6,6 +6,13 @@ require "paapi/listing" require "paapi/response" module Paapi + DEPRECATION_MESSAGE = <<~MSG.freeze + [DEPRECATION] The paapi gem is deprecated and will stop working after May 15, 2026. + Amazon is replacing PA-API v5 with the Creators API. + Please switch to the vacuum gem (v5.0+): https://github.com/hakanensari/vacuum + MSG + + warn DEPRECATION_MESSAGE class Error < StandardError; end class NotImplemented < StandardError; end