Code Monkey home page Code Monkey logo

Comments (22)

 avatar commented on July 29, 2024

I work in Australia but we also use jp domain. This worked for me.

routes = {
        "GetOffers": "https://flex-capacity-jp.amazon.com/GetOffersForProviderPost",
        "AcceptOffer": "https://flex-capacity-jp.amazon.com/AcceptOffer",
        "GetAuthToken": "https://api.amazon.com/auth/register",
        "ForfeitOffer": "https://flex-capacity-jp.amazon.com/schedule/blocks/",
        "GetEligibleServiceAreas": "https://flex-capacity-jp.amazon.com/eligibleServiceAreas",
        "GetOfferFiltersOptions": "https://flex-capacity-jp.amazon.com/getOfferFiltersOptions"
    }

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

I work in Australia but we also use jp domain. This worked for me.

routes = {
        "GetOffers": "https://flex-capacity-jp.amazon.com/GetOffersForProviderPost",
        "AcceptOffer": "https://flex-capacity-jp.amazon.com/AcceptOffer",
        "GetAuthToken": "https://api.amazon.com/auth/register",
        "ForfeitOffer": "https://flex-capacity-jp.amazon.com/schedule/blocks/",
        "GetEligibleServiceAreas": "https://flex-capacity-jp.amazon.com/eligibleServiceAreas",
        "GetOfferFiltersOptions": "https://flex-capacity-jp.amazon.com/getOfferFiltersOptions"
    }

thank you very much. I'm still having difficulties, I can't authenticate. I believe that the link should be changed, however, I do not know how to proceed. Would you help me? I thank you

from amazonflexunlimited.

 avatar commented on July 29, 2024

I work in Australia but we also use jp domain. This worked for me.

routes = {
        "GetOffers": "https://flex-capacity-jp.amazon.com/GetOffersForProviderPost",
        "AcceptOffer": "https://flex-capacity-jp.amazon.com/AcceptOffer",
        "GetAuthToken": "https://api.amazon.com/auth/register",
        "ForfeitOffer": "https://flex-capacity-jp.amazon.com/schedule/blocks/",
        "GetEligibleServiceAreas": "https://flex-capacity-jp.amazon.com/eligibleServiceAreas",
        "GetOfferFiltersOptions": "https://flex-capacity-jp.amazon.com/getOfferFiltersOptions"
    }

thank you very much. I'm still having difficulties, I can't authenticate. I believe that the link should be changed, however, I do not know how to proceed. Would you help me? I thank you

You need to copy the link and it will redirect you to Amazon webpage. Once you logged in, Once you have logged in, simply copy and paste the link into the terminal.

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

I did this procedure. But when I click on the link I am redirected to amazon.com and with that I cannot log in, because my account is amazon japan.

from amazonflexunlimited.

 avatar commented on July 29, 2024

Why can't you login? Could you please share more information? You should be fine if you changed the routes

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

Why can't you login? Could you please share more information? You should be fine if you changed the routes

I made the changes to the routes. But when I start the application, it asks me to click on the link and I am directed to amazon.com. So I can't complete the login so I can copy the url and paste.

I believe this link that I colored red needs to be changed.

1
2

from amazonflexunlimited.

 avatar commented on July 29, 2024

This looks fine. All you need to do is proceed to sign in and you will come up with something like an error. Once you see that, copy the link and paste into the terminal.

That link contains the access token of your account. Once you successfully done this process, you do not have to sign in each time when you run the app.

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

This looks fine. All you need to do is proceed to sign in and you will come up with something like an error. Once you see that, copy the link and paste into the terminal.

That link contains the access token of your account. Once you successfully done this process, you do not have to sign in each time when you run the app.

yes, I already did this process with third party sites and it worked, however I was directed to amazon.co.jp I logged in and then copied and pasted the error url and it worked. In this case here, I can't login because it's on amazon.com

from amazonflexunlimited.

 avatar commented on July 29, 2024

What's the webpage looks like when you logged in?

I am also in jp region and this app redirects me to amazon.com page too and I am able to login without having any problem.

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

this error message appears. Could you share your settings?

image

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

What's the webpage looks like when you logged in?

I am also in jp region and this app redirects me to amazon.com page too and I am able to login without having any problem.

I tried using the amazon.co.jp link and was successfully redirected. I logged in, copied the url and pasted it. A different error occurred.

image

from amazonflexunlimited.

 avatar commented on July 29, 2024

Exactly same settings, not much to change. It seems like you are missing this route. Could you add and try it again?
"RequestNewAccessToken": "https://api.amazon.com/auth/token",

Or delete the current folder and download the last version of this project and try it again.

And I recommend you to delete the last screenshot because it has your account details.

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

"RequestNewAccessToken": "https://api.amazon.com/auth/token",

added the route. This error appears

image

from amazonflexunlimited.

 avatar commented on July 29, 2024

Could you please try via your code editor's terminal?

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

Could you please try via your code editor's terminal?

I did the test as you asked, it didn't work either

image

from amazonflexunlimited.

 avatar commented on July 29, 2024

I realised you changed the link variable from amazon.com to amazon.co.jp. It has to be amazon.com, keep the original one. You only need to change the routes to jp

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

I realised you changed the link variable from amazon.com to amazon.co.jp. It has to be amazon.com, keep the original one. You only need to change the routes to jp

unfortunately with amazon.com nothing works. I'll try to see other ways. Thanks a lot for the help

image

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

Could you please try via your code editor's terminal?

could you tell me which program you are using?

from amazonflexunlimited.

 avatar commented on July 29, 2024

vs code but I reckon there's nothing related with the code editor

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

vs code but I reckon there's nothing related with the code editor

Got it, I don't know what it could be anymore :(

from amazonflexunlimited.

 avatar commented on July 29, 2024

@dymmyttry https://www.amazon.co.jp/ap/signin?ie=UTF8&clientContext=134-9172090-0857541&openid.pape.max_auth_age=0&use_global_authentication=false&accountStatusPolicy=P1&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&use_audio_captcha=false&arb=97b4a0fe-13b8-45fd-b405-ae94b0fec45b&openid.return_to=https%3A%2F%2Fwww.amazon.co.jp%2Fap%2Fmaplanding&openid.assoc_handle=amzn_device_ios_jp&pageId=amzn_device_ios_light&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.scope=device_auth_access&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&disableLoginPrepopulate=0&openid.oa2.client_id=device%3A32663430323338643639356262653236326265346136356131376439616135392341314d50534c4643374c3541464b&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
This should work with this script.

from amazonflexunlimited.

dymmyttry avatar dymmyttry commented on July 29, 2024

@dymmyttry https://www.amazon.co.jp/ap/signin?ie=UTF8&clientContext=134-9172090-0857541&openid.pape.max_auth_age=0&use_global_authentication=false&accountStatusPolicy=P1&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&use_audio_captcha=false&arb=97b4a0fe-13b8-45fd-b405-ae94b0fec45b&openid.return_to=https%3A%2F%2Fwww.amazon.co.jp%2Fap%2Fmaplanding&openid.assoc_handle=amzn_device_ios_jp&pageId=amzn_device_ios_light&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.scope=device_auth_access&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&disableLoginPrepopulate=0&openid.oa2.client_id=device%3A32663430323338643639356262653236326265346136356131376439616135392341314d50534c4643374c3541464b&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0 This should work with this script.

It worked. Thank you very much 👍 :)

from amazonflexunlimited.

Related Issues (20)

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.