Git Product home page Git Product logo

amazon-hub-counter-api-docs's Introduction

Amazon Hub Counter API Docs

This repository serves the documentation and the up-to-date OpenAPI spec of the Amazon Hub Counter API.

License Summary

The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.

The sample code within this documentation is made available under the MIT-0 license. See the LICENSE-SAMPLECODE file.

amazon-hub-counter-api-docs's People

Contributors

agaadit avatar amazon-auto avatar asayyadi-amzn avatar ceref avatar domvisser avatar korbiniw avatar mittad avatar righetl avatar shatakss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

amazon-hub-counter-api-docs's Issues

Auth endpoint is responding with 400 Bad Request even using the "scope" default value.

I was trying to consume the auth endpoint:

https://api.amazon.com/auth/o2/token

But I get this error:

{
    "error_description": "The request has an invalid parameter : scope",
    "error": "invalid_scope"
}

My paypload seems to be ok since I used as reference the payload mentioned in the doc:

{
    "client_id": "MY_CLIENT_ID",
    "client_secret": "MY_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "scope": "accesspoints::accesspoint:readwrite"
}

As you can see in the error response the API is saying this value is invalid:

"scope": "accesspoints::accesspoint:readwrite"

but this is what the doc is suggesting to do, so, my 2 smells are:

  1. The API was updated at some point to expect a diff value but the doc was not synched or
  2. There is a bug in that endpoint.

Thanks in advance.

Getting CORS error when trying to consume the sandbox URL from a S3 bucket

I have an FE app in Angular which is consuming the Amazon Hub Counter API.

In order to make tests over the sandbox URL of the Amazon Hub Counter API (https://accesspoints-api-sandbox-na.amazon.com/v1) I deployed my FE to a S3 bucket, the app is working fine, but when I try to consume any endpoint from the sandbox URL I'm getting the following CORS error:

image

image

As you can see the GET token endpoint is passing successfully since this endpoint lives in a different url (https://api.amazon.com/auth/o2/token) but any request to the sandbox URL is failing due to this CORS error.

Any ideas how to solve this?

BTW, this error is not happening if I test the Angular app running locally, I mean, when the FE is deployed to localhost:4200, in this way the sandbox URL is respoding correctly. Could it be an issue of how the sandbox server is configured? I mean is this only accepting requests from localhost? Also when using POSTMAN the requests are passing successfully, the only problem comes when I try to consume from an external S3 bucket ex. http://counter-staging.s3-website.us-east-2.amazonaws.com/

Submitting Client Id to Partner Central

I am trying to make use of the Amazon Hub Locker API, but it says that I need to submit my developer client Id to amazon! I can't seem to find where to do this?

Am following the tutorial on : https://amzn.github.io/amazon-hub-counter-api-docs/#section/Developer-Account-Registration-Process/Setting-up-a-new-Security-Profile

In my case, (France) :
If the Partner is located in North America or Europe, they should submit their Client ID to Partner Central as soon as possible.

Any help is greatly appreciated!

Does the API daily limit apply also for the GET document endpoint?

Partners can send a maximum number of 15 API calls per day. If there is a specific business case for the Partner to perform more than 15 calls a day, please contact your Amazon representative to approve a temporary limit increase.

I'm interested in consuming the Return a document endpoint by applying a Polling strategy in order to verify what's the status of the Access Point Locations I posted, is this possible? or the 15 days limit applies for all the endpoints and not just the "Create a feed" endpoint?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.