Coder Social home page Coder Social logo

Comments (8)

loldenburg avatar loldenburg commented on August 28, 2024 1

This works btw:

   cfg.aaconfig_bycomp(company)
   login = aa2.Login()
   cid = login.getCompanyId()[0]['globalCompanyId']
   ags = aa2.Analytics(cid)

But using this method would mean I would have to update code in a looot of files and then QA all these scripts. Work for a whole day. According to docs, the aa2.getCompanyId() method should work

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on August 28, 2024 1

works locally, also the other config syntax works now. Now the always tricky test in the cloud... ;)

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on August 28, 2024 1

Works in the cloud, too. I also now took the time to encapsulate the whole config, getCid and login stuff so if it changes in the future, I have to change only function. So feel free to remove the old getCompanyID() method (unless others need it).

Really cool to finally use the Projects API!!!

THANK YOU, JULIEN, and have a nice Christmas! :)

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on August 28, 2024

Hello @loldenburg
You are right that it should still work.

Sorry I missed that. I tried to integrate tests to make my releases more stable but the legacy version is not included :(
Good news is that I was able to reiterate that issue and fix it.
The version 0.1.8 is now live, can you test it ?

Old version:
image

New version:
image

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on August 28, 2024

What the previous version you used ?

I would have expected your config method to be something like this:

def function_that_is_called_by_cfg.aaconfig_bycomp(company):
    aa2.config.config_object["org_id"]= 'xxx@AdobeOrg'
    aa2.config.config_object["tech_id"] = '[email protected]'
    aa2.config.config_object["api_key"]= 'xxx'
    aa2.config.header["X-Api-Key"] = aa2.config.config_object["api_key"]
    aa2.config.config_object["secret"] = 'xxx'
    aa2.config.config_object["pathToKey"] = AA_PRIVATE_KEY_PATH_COMP
    aa2.configure(org_id=aa2.config.config_object["org_id"], tech_id=aa2.config.config_object["tech_id"], secret=aa2.config.config_object["secret"],path_to_key=aa2.config.config_object["pathToKey"], client_id=aa2.config.config_object["api_key"])
    return aa2

also aa2.config.config_object["api_key"] is now aa2.config.config_object["client_id"] but it would work with "api_key" as well for you as you are pushing it to a dictionary and re-using it anyway with the correct parameter (client_id).
This one is not from me but Adobe changed the name of it over the year.

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on August 28, 2024

What the previous version you used ?

I used the fork mentioned above (sorry link for browser is xSAVIKx@4fc0e0c ). That was necessary back then to make an update of the API2 Wrapper work.

Will try the new version, thanks!

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on August 28, 2024

encouraging !

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on August 28, 2024

You are the only one to use it that I know.
It will gradually be discarded in the documentation and will be removed in the future.

Have a nice christmas as well and guten Rutsch ;)

from adobe-analytics-api-2.0.

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.