How to automatically download files from Sharepoint via REST API using postman - json

Stuck with a requirement where I have some CSV files in Sharepoint and I need to download them using REST API.
I am using postman for this task. After generating access token and running the REST API
https://xyz.sharepoint.com/sites/YYYFILES/_api/Web/GetFolderByServerRelativeUrl('test_library/lib')/Files
in postman, I am able to see JSON but files are not being downloaded automatically in local system.
Your ideas will be so helpful!
Thanks a ton in Advance!

Please try to add '$value' after '/Files'
Here is an example you can refer to:
https://xxxxx.sharepoint.com/sites/_api/web/GetFolderByServerRelativeUrl('test_library/lib')/Files('Document1.docx')/$value

Related

Issue with uploading file to BIM 360 using forge API

I am using two-legged authentication for uploading files to BIM, the bucket API response says success but I cannot see files in the respective folder.
The response from Bucket api is like this: https://i.stack.imgur.com/BePMC.png
Any suggestions on the issue?
Look you haven't created the first version tip. Here is the tutorial page:
https://forge.autodesk.com/en/docs/bim360/v1/tutorials/document-management/upload-document/#step-7-create-the-first-version-of-the-file

I'm experiencing a JSON Decode Error while using the Youtube API for Subscribers (Python)

I'm using Python 3.8 in my program using the YouTube API to scrape a list of my subscribers from my YouTube channel. I have the correct code, created the right credentials (API Key and OAuth2), and I downloaded my Json File for client ID. I'm experiencing this tracecall when I run the program:
If it's helpful to see the code, let me know, but I can't seem to fix this JSON error. With that said, I'm completely inexperienced to this so it could just be something simple that I don't know about.
I found the answer to my question. I had to download the JSON file from a different location. Initially, I downloaded the JSON by entering the OAuth 2 Credential section specifically and clicking Download JSON file.
It turns out that you you don't have to do that. Once you sign into your Google Consoles for the API and are on this screen:
You can click on the download button on the OAuth 2 row. That should work as the JSON file you need.

Is it possible to generate link to JSON file that store in Google drive

I have upload json file to my google drive, for using as source data for QlikSense (via REST API) with permission = anyone, with the link can view.
So is it possible to generate link from that file?
Thank you for your help
Regards
Direct Download URL of regular file:
https://drive.google.com/uc?export=download&id=YOUR_ID
But I prefer another way, to copy the JSON data to a new Google Document (not regular file), then make it available to anyone with the link, and make your GET requests to a link like:
https://drive.google.com/file/d/YOUR_ID/export?format=txt
You may want to check the Files: get
Gets a file's metadata or content by ID.
Using the API Explorer, you can use this to see the actual API request and response
Then you will get a response:
If you will not be using the API you can get the link by right click -> Get shareable link.
Hope this helps.

How to retrieve Install Statistics from the Google Developer's Console?

I am trying to programmatically retrieve my company's app data from the Google Developer's Console, specifically the daily installs. I have found that Google recommends the gsutil tool to access the data programmatically through the Google Cloud Storage SDK. However, I beleive they charge for this service. I want a free way to programmatically retrieve the data, preferably as a JSON stream to avoid dealing with file downloads. I have found the "direct reporting" links, but I have problems authenticating when I try to use them, and I also have to do something with the actual files then.
Is there a way to get a JSON version of the data through OAuth2 or something without downloading an Excel file? Has anyone had to do this? Thanks in advance.

Get files from Google Drive SDK using C# .NET

I'm doing an application that access a google drive and get a file for my web application. I'm doing in C# .Net 4. Does anybody how to do this? Thanks
Please follow the C# Quickstart to start your project. It will guide you to set up authentication. Then, use Files.get() to retrieve metadata of the file which has downloadUrl to download content of the file. All sample code of retrieving metadata and downloading content is available in C# in the documentation for Files.get().