Download safelink file with GraphApi - microsoft-graph-api

How can files be downloaded from Sharepoint via GraphApi that are pointing to safelinks.protection.outlook.com? I am using an Azure service app.
I can download non-safelinks just fine.

Related

Download attachment in private Microsoft Team chat via Graph API

I am trying to download attachments in private chat via graph API. When I execute the below query in Microsoft Graph Explorer. I am able to get the attachment id and path.
https://graph.microsoft.com/v1.0/me/chats/{chat-id}/messages/{message-id}/
But how can I download this file?
Files are not available when requested for hostedContents. So, I believe hostedContents is not an option.
Firstly the files are hosted in chat so it will not give 404 before but after exporting to onedrive then it will delete from there thats why its returning 404.
You have to use below API's to download file from onedrive because its exported to onedrive.
GET /drives/{drive-id}/items/{item-id}/content
GET /groups/{group-id}/drive/items/{item-id}/content
GET /me/drive/root:/{item-path}:/content
GET /me/drive/items/{item-id}/content
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/content
GET /sites/{siteId}/drive/items/{item-id}/content
GET /users/{userId}/drive/items/{item-id}/content
Reference Doc: https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http

How MS Teams auto logs into Azure AD

I tried few plugins to implement Azure AD auto-login functionality to an Electron app, but each of them had login issues described here if I choose file system URL(file:///).
This is because Electron apps run on file system URLs and Azure AD doesn't accepts a file system URL.
As much as I know, MS Teams is build on Electron.
How have they achieved it?
Do I need to run a local server like electron-with-express?

Is that possible to download google derive files without integration with ios

Is that possible to download files from google drive without integrate it's sdk (class files) or authentication. Consider following scenario:
I Used UIWebView in mysample application.
I am logged in to Google Drive through UIWebView (Like logged in to google drive same as browser logged in).
Now i want to download google drive documents in to mysample application document folder.
Problem:
When i am trying to download file from google drive it will now downloaded (I am using nsurl connection or ASIHttpRequest for download file).
I Integrate GoogleSDK (Class Library) in another sample application it will work fine and files are downloaded using file.downloadURL.
Now, My simple question is can we download files from google drive by UIWebView logged in or not? Is there any way?
We don't support integrating with the iOS web view, and suggest you use the SDK.

Uploading files to Sharepoint 2010 Picture Library

I am creating a iphone app that connects to a sharepoint site to download and upload images.
i can download images by using sharepoint's listdata.svc with GET request and querying the site to retrieve the url of the image that i want.
https://xx.xxx.xx/sites/XXX-XXX/xxxx/TestLibrary/1/Picture%20Library/test.jpg
Question is how do i upload a file using HTTP PUT request?
Use _vti_bin/copy.asmx web-service

Upload public file to dropbox from iOS App without auth

Am writing an iPhone App in which I want to upload a text file from the iOS App to somewhere & I thought of using dropbox for it. I will upload the file to my dropbox ID from the App (i.e. the user won't be required to authenticate with his/her dropbox credentials). Is this possible? Dropbox API (I even tried GDrive API) asks for auth ; how do I give my dropbox credentials through code & upload the file to my dropbox account?
You must need Auth,otherwise in which account the file gets uploaded??
I don't think there is any other means to accomplish this except through OAuth.
Please refer to this framework that enables your app to access files from Dropbox without having to worry about the complexities of implementing a file browser, OAuth, or managing uploads and storage.

Resources