How to get box api web app integration folder id - box-api

Hi I am trying to create a Box Web app integration which is triggered from Folders.
https://box-content.readme.io/docs/box-web-application-integrations
I can't passover the Folder_ID to my app.
It seems like #file_id# is the only parameter available by default.
Anyone have any idea how I can pass over the FolderID?
Thanks,

When you provide "linkType" property value as shared instead of direct, you will be able to select Folders which gives folderId and folderName details in the response.

Related

Get Labelled Files in GDrive

I wrote a code in Google Appscript to index all files in GDrive and try to identify if those files are labelled or not.
For summary, the Labels feature only available in GWorkspace business account and only the admin of the entreprise who have edit access of this feature.
I tried to use seacrhFiles(param) however the "Labels" isn't recognized by q string query Google, do we have another method to do it ?
Thank you,
Features that are part of workspace business accounts. Are not part of the public Google drive api.
You can tell by looking at the file resource object. It does not contain a field called label.
Your not going to find a method in the google drive api that will return a label on a file.
Even a Google Document resource object doesn't have it.
There may be a restricted api just for workspace users you would have to ask. But its not something i have heard of.
There will be a labels API that will allow you to to create, edit, apply, and remove labels programmatically
As of now, this API is still in development (beta stage), but you can get access to it if you contact drive-labels-feedback#google.com.
References:
https://support.google.com/a/answer/9292382?hl=en&fl=1#zippy=%2Cis-it-possible-to-apply-labels-through-an-api
https://issuetracker.google.com/167701931

Pass Mediawiki "wgUserName" to Google Tag Manager

I have an install of Mediawiki for my company which I have tracking page activity currently, but I also want to be able to track page activity per user.
Ideally, I'd like to pass the wgUserName into Google Tag Manager as the userid that Google Analytics sees.
How can I pass the wgUserName into the data layer from the wiki? I just need to get that into Tag Manager.
Thanks!
I don't think you'll need the data layer for this, according to https://www.mediawiki.org/wiki/Manual:Interface/JavaScript
You can access the config via: mw.config and the value for "wgUserName" can be found with "mw.config.get("wgUserName")"
Thus all you need to do in GTM is create a Custom JavaScript variable and reference it:

windows phone 8.1 app registration through facebook

I want to integrate facebook login in my app for registration i am following this link but not able to understand how to get the Windows Store ID in step 1.2.. can anyone please help..
Have you tried to put the code
Uri _callbackUri = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
somewhere in your app, for example at the end of App.OnLaunched() method, then put a breakpoint after it, run the app and examine the returned value.
So the windows store id can be retrieved in two ways. One is programatically by calling this method
Uri _callbackUri = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
And the other way is to login to your microsoft account which you would have registered in dev.windows.com then perfom the following steps
Navigate to dashboard.
Select the app for which you want to integrate the FB login.(If you haven't registered an app in this account yet then I recommend you do it. Because once you do that and login via Visual studio the above mentioned URI method will return same store Id)
Then navigate to that app and on the left you will see a options like Acquistions,Analytics etc. there click on App Management and inside that click on App Identity.
In the app identity page you can find a field name Package SID which is your store id.
Hope this helps!

How to get the file id using Box API

I have created created How to a new web app integration with the help of this documentation of Box api documentation.
When i right click on a pdf file i can see my application.
Now i need to know how to configure my application to get the file id?
I believe what you're looking for is the "Callback Parameters" section of your Web App Integration.
Within the Callback Parameters section you can choose whether what your application is expecting is a GET or POST request or a file object (in cases where you would like the file itself to be sent to your application) and input a parameter name that you would like to receive for the value. Then you can click into the box for Parameter Value to see a dropdown of the available parameters that can be sent to your application with a short description of what each one returns. The one you're looking for in this case is the file_id, which will show up as #file_id# once you click it, as in the screenshot provided.

Google Drive API says some files do not exist when in fact they do

So, I've gotten to the point in my app where I can retrieve a list of spreadsheet documents from a user's Google Drive account by using the Google Spreadsheet API. I populate the file list in a ui control that users can click on to then retrieve the list of its worksheets. It's working as expected in some cases, but in others it is not. In my request, I use the url that comes back from the file list, and even so, the API responds with:
Sorry, the file you have requested does not exist.
Make sure that you have the correct URL and that the owner of the file hasn't deleted it.
Well, surely the file wasn't deleted. I got it back in the response to my request for the files list. I also can get to the file via a normal web browser. Also, the URL is correct because that's the one the API responded with. My code does not manipulate the url that comes back in that initial files response. In fact, here is the URL that is used to grab the worksheets:
https://spreadsheets.google.com/feeds/worksheets/{long key here}/private/full
So, my question is why does my request for some worksheets come back with a response with the actual list of worksheets, but on others (which I have access to, and I know exists) I get the faulty response.
Thanks,
Arie
My app is using OAuth 2.0 and I ran into the same error with new Google Sheets. What fixed that was making a change in scope param sent during OAuth's authorize call and then reauthorising (reinitiating OAuth flow and obtaining new tokens).
Until now scope in my app was just:
https://spreadsheets.google.com/feeds
Updated scope and solution to the issue in my case:
https://spreadsheets.google.com/feeds https://docs.google.com/feeds
I'm running into this in my own stuff. At least for what I'm running into, it seems to be an issue with New Sheets. I'm sorry to not have more of a solution (I'm still trying to find out what to fix on my end) but this may help you narrow down the issue.