since ‎19-11-2009
‎13-10-2020
dr_venture
Employee
Re: Is there an SDK I can use for the data insertion API? dr_venture - Project Firefly
Maintainer of the lib is a slacker
33
Views
0
Likes
0
Comments
Re: Is there an SDK I can use for the data insertion API? dr_venture - Project Firefly
You can use this lib.https://www.npmjs.com/package/adobe-analytics-di Its a little dated but it works.
36
Views
1
Like
1
Answers
Re: Change "workspace" for local development dr_venture - Project Firefly
https://medium.com/adobetech/project-firefly-how-to-projects-and-workspaces-9738d31338e7
53
Views
0
Likes
0
Comments
Re: How do I create a headless application? dr_venture - Project Firefly
You sure?  If you need some help feel free to ask. 
47
Views
1
Like
0
Answers
Re: Change "workspace" for local development dr_venture - Project Firefly
Go into the Adobe Developer Console and add all the services you need to the workspace your going to switch to. Then at a terminal do the followingaio console workspace listthen find the ID of the workspace you want to switch toaio console workspace select 12323123213thenaio app use -m
78
Views
1
Like
3
Answers
Re: Checking Access Credentials within an action dr_venture - Project Firefly
that is cool. Should work nicely
64
Views
0
Likes
0
Comments
Re: Checking Access Credentials within an action dr_venture - Project Firefly
I edited it to point out the scopes property which might be of use to you.
86
Views
0
Likes
0
Comments
Re: Checking Access Credentials within an action dr_venture - Project Firefly
You should be able to decode the bearer token and get the following { "id" : "1600361729831_7c314c691", "client_id" : "UDPWeb1", "user_id" : "8E5E47DA4706D5D@AdobeID", "state" : "{\"session\":\"https://ims-na1.adobelogin.com/ims/session/v1/ZjZmMWE3YTQtmRlLS04RTVFNDdEQTQ3MDZENUQ1OTYmVJRA\"}", "type" : "access_token", "as" : "ims-na1", "fg" : "UY6ROZRAVLPBL37QAP4======", "sid" : "1599771421938_-8d32-425e-815d-b734beb48abc_ue1", "moi" : "db01", "c" : "kg9B1xnV4UpPgkVi/gQ==", "expires_in" : "8640000...
94
Views
1
Like
4
Answers
Re: Trigger another action from within an action dr_venture - Project Firefly
Rule and Trigger is the cleanest way but you can also do this if neededconst openwhisk = require('openwhisk') const options = { apihost: 'HOST:PORT', api_key: 'API_KEY_HERE', api: process.env['__OW_API_HOST'] + "/api/v1/" } let wsk = openwhisk(options) let invokeParams = {"stuff":"my stuff","topass":"in","asparams":"more data"} wsk.actions.invoke({ actionName:"/my/namespace/actionname", blocking: false, result: false, params:invokeParams });
69
Views
1
Like
0
Answers
Re: Hello World App Error - Something Went Wrong dr_venture - Project Firefly
confirmed.
975
Views
0
Likes
0
Comments
Re: App initialization fails dr_venture - Project Firefly
Ok, engineering patched the issue up. Please update Adobe I/O CLI to the latest and try to do init again. Let us know if this does not fix the issue for you. npm i -g @adobe/aio-cli
433
Views
1
Like
1
Answers
Re: App initialization fails dr_venture - Project Firefly
Engineer is working on a fix. Let you know after we test the fix. Sorry for the miss on that one.
436
Views
0
Likes
0
Comments
Re: App initialization fails dr_venture - Project Firefly
Reported the issue to core developers. When they post a fix I will let you know.
444
Views
0
Likes
0
Comments
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
glad your fixed up
442
Views
0
Likes
0
Comments
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
I will still look around and see if we have helper libs. If not maybe we should make an AdobeFetch that will auto wrap up and pass the auth for you.
443
Views
0
Likes
0
Comments
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
I am double-checking with some people to make sure there are no handy helper libs but essentially you will need to forward the headers from the action invoke to your secondary service call.const res = await fetch(apiEndpoint,{ headers:{ "authorization": params.__ow_headers["authorization"], "x-api-key": params.__ow_headers["x-api-key"], "w-gw-ims-org-id": params.__ow_headers["w-gw-ims-org-id"], "x-api-key": params.__ow_headers["x-api-key"] } })
457
Views
0
Likes
3
Answers
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
That would indicate not allowed. Would you mind posting the section of code where you make the fetch call to the privacy server? plz
371
Views
0
Likes
0
Comments
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
I don't see an error in the code you posted.In fact, I took the section of code you shared and ran it local and it worked fine. 500 could be coming from the privacy service. When you do the fetch on the privacy endpoint are you including all the needed headers, params, and auth needed to make that call? const requiredParams = [] const requiredHeaders = ['Authorization','x-api-key','w-gw-ims-org-id'] const errorMessage = checkMissingRequestInputs(params, requiredParams, requiredHeaders) if (error...
386
Views
0
Likes
0
Answers
Re: Privacy Service API request from Firefly Sample App dr_venture - Project Firefly
Can you post a sample of the code in question? It is hard to tell the problem from that error message.
545
Views
0
Likes
1
Answers