Comments (8)
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.
works locally, also the other config syntax works now. Now the always tricky test in the cloud... ;)
from adobe-analytics-api-2.0.
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.
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 ?
from adobe-analytics-api-2.0.
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.
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.
encouraging !
from adobe-analytics-api-2.0.
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)
- findComponentsUsage function fails HOT 9
- findComponentsUsage KeyError: 'reportlet' HOT 8
- UnboundLocalError: local variable 'myProjectDetails' referenced before assignment HOT 5
- Issue with getUsagelogs method HOT 10
- Data warehouse method HOT 1
- getReport does not work with RequestCreator HOT 2
- [Bug] Statistics needed in getReport2() HOT 5
- createConfigFile() Improved argument parsing HOT 3
- getUsagelogs returning KeyError 'Content' HOT 7
- getReport2 fails if dimensional value filters are used as segments HOT 5
- Limit HOT 2
- Feature Request: Ability to pass through a logging.formatter class to the logger. HOT 2
- Bug: DataFrame obtained from getReport method not matching table seen in Adobe Analytics portal. HOT 3
- Updating segment error HOT 1
- Feature Request: getRequests() Method HOT 1
- getReport methods do not accept requests without a dimension HOT 6
- Pandas error from getReport2 (for a request with no dimensions and no STATIC_ROW_COMPONENT. HOT 3
- getReport2 returns incorrect numbers for metrics/pageviews. HOT 7
- getReport2 should not rewrite the request HOT 12
- getRequest2 method returning 0 rows for all json requests. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-analytics-api-2.0.