Comments (3)
thanks for logging that enhancement request @akashachanta01
It should be possible to connect with only the following information:
- org id
- client ID / api key
- token
but we would need to trick the system a bit.
I will provide a function to do that if this succeed.
You would need to use the configure method to add the org_id and "fake" other info.
So your python code should look something like this
import aanalytics2
my_org_id = "realOrgID"
my_client_id = "realClientId"
aanalytics2.configure(org_id=my_org_id,tech_id="anyString", secret="anyString",path_to_key="anyString",client_id=my_client_id)
once you have setup that, you will need to set manually the token and an expiration date for the token.
So I would do something like this afterwards:
myToken = "realToken"
import time
expiration = int(time.time()) + 20 * 60 * 60
aanalytics2.config.config_object['date_limit'] = expiration
aanalytics2.config.config_object['token'] = myToken
aanalytics2.config.header['Authorization'] = 'Bearer '+myToken
Once that is done, you should be able to use the module like in the videos or documentation.
Note : You won't have automatic refreshing of the token after 20 hours in this case.
Let me know if this works as I expect it to.
from adobe-analytics-api-2.0.
Thanks @pitchmuc , this worked out fine for me . Will reach out to you if I have any other questions . Thanks !
from adobe-analytics-api-2.0.
I have streamlined this method so you can use the configure
method in order to pass the information.
Please refer to this part of the get-started documentation
from adobe-analytics-api-2.0.
Related Issues (20)
- Dimension API is returning up to 3 Elements in Support Value list HOT 4
- 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.