Skip to content

Commit 370cfd2

Browse files
patrick-rodgersdaspekVesaJuvonenchackmanmohitp930
authored
Main (#1726)
* Initialize open publishing repository: https://github.com/OneDrive/onedrive-api-docs of branch master * Initialize open publishing repository: https://github.com/OneDrive/onedrive-api-docs of branch master * update with existing .openpublishing.publish.config.json * [BrokenLinksH2] (#1619) * [BrokenLinksH2] * broken links * Update description rely on AI ability (#1717) Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> * Update description rely on AI ability (#1718) Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> * Update description rely on AI ability (#1719) Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> --------- Co-authored-by: daspek <daspek@hotmail.com> Co-authored-by: VesaJuvonen <vesa.juvonen@hotmail.com> Co-authored-by: Chris Hackmann <chackman@users.noreply.github.com> Co-authored-by: Mohit Patel <103079000+mohitp930@users.noreply.github.com> Co-authored-by: learn-build-service-prod[bot] <113403604+learn-build-service-prod[bot]@users.noreply.github.com> Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com>
1 parent e1752f0 commit 370cfd2

File tree

9 files changed

+50
-42
lines changed

9 files changed

+50
-42
lines changed

.openpublishing.publish.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"notification_subscribers": [
2121
"dspektor@microsoft.com"
2222
],
23+
"sync_notification_subscribers": null,
2324
"branches_to_filter": [],
2425
"git_repository_url_open_to_public_contributors": "https://github.com/OneDrive/onedrive-api-docs",
2526
"git_repository_branch_open_to_public_contributors": "live",
@@ -30,7 +31,7 @@
3031
{
3132
"path_to_root": "_themes",
3233
"url": "https://github.com/Microsoft/templates.docs.msft",
33-
"branch": "master",
34+
"branch": "main",
3435
"branch_mapping": {}
3536
}
3637
],

docs/rest-api/concepts/migrating-from-live-sdk.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.localizationpriority: Medium
1010
If you are using the Live SDK or Live Connect APIs to connect to profile, calendar, contacts, or files, your app needs to be updated to maintain functionality.
1111

1212
Live SDK and Live Connect APIs have been marked as deprecated for over a year.
13-
As announced on the [Office Developer blog](https://dev.office.com/blogs), these APIs are now end of life and will no longer be available after **November 1, 2018**.
13+
As announced on the [Office Developer blog](https://devblogs.microsoft.com/microsoft365dev/), these APIs are now end of life and will no longer be available after **November 1, 2018**.
1414

1515
Profile and contacts data will no longer be available from the Live Connect APIs as of **Decmeber 1, 2017**.
1616
Calendar data has not been available from Live Connect since **June 2017**.
@@ -24,10 +24,10 @@ To continue to integrate with Microsoft services, developers must update their a
2424

2525
Similar to the capabilities of Live Connect, Microsoft Graph has a number of resources available depending on the type of user data your app interacts with:
2626

27-
* [Microsoft account authentication](https://developer.microsoft.com/en-us/graph/docs/concepts/auth_overview)
27+
* [Microsoft account authentication](/graph/auth/)
2828
* [OneDrive files](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/onedrive)
2929
* [Outlook calendar](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/calendar)
30-
* [Outlook messages](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/mail_api_overview)
30+
* [Outlook messages](/graph/outlook-mail-concept-overview)
3131
* [Personal contacts](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/contact)
3232
* [Profile and Identity API](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/users)
3333

@@ -41,7 +41,7 @@ Microsoft Graph uses a different set of permission scopes than Live Connect.
4141
To access the Microsoft Graph APIs, your app will need to switch permission scopes.
4242
This requires your app to prompt the user for consent to sign in and consent to the new permissions.
4343

44-
See the [Microsoft Graph permission reference](https://developer.microsoft.com/en-us/graph/docs/concepts/permissions_reference) for the complete details.
44+
See the [Microsoft Graph permission reference](/graph/permissions-reference) for the complete details.
4545

4646
| Live Connect Scope | Microsoft Graph Permission | Description |
4747
| ----------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
@@ -84,7 +84,7 @@ You will need to use the Microsoft Graph SDK or update your JSON mapping to use
8484
[1]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
8585
[2]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/photo/$value&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
8686
[user]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/users
87-
[user-photo]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/profilephoto_get
87+
[user-photo]: /graph/api/profilephoto-get
8888

8989
## Contacts API
9090

@@ -102,8 +102,8 @@ You will need to use the Microsoft Graph SDK or update your JSON mapping to use
102102

103103
[3]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/contacts&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
104104
[4]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/contacts/AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEOAAAiIsqMbYjsT5e-T7KzowPTAAAYbuK-AAA=&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
105-
[contacts]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_contacts
106-
[create-contact]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_contacts
105+
[contacts]: /graph/api/user-list-contacts
106+
[create-contact]: /graph/api/user-post-contacts
107107

108108
## Calendar API
109109

@@ -121,9 +121,9 @@ You will need to use the Microsoft Graph SDK or update your JSON mapping to use
121121

122122
[5]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/calendars&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
123123
[6]: https://developer.microsoft.com/en-us/graph/graph-explorer?request=me/events?$select=subject,body,bodyPreview,organizer,attendees,start,end,location&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com
124-
[calendars]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_calendars
125-
[events]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_events
126-
[create-event]: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_events
124+
[calendars]: /graph/api/user-list-calendars
125+
[events]: /graph/api/user-list-events
126+
[create-event]: /graph/api/user-post-events
127127

128128
## OneDrive REST API
129129

docs/rest-api/concepts/working-with-cors.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ ms.author: JeremyKe
44
ms.date: 09/10/2017
55
ms.topic: conceptual
66
title: CORS support - OneDrive API
7-
ms.localizationpriority: Medium
7+
8+
localization_priority: Normal
9+
description: Master OneDrive API with CORS for seamless JavaScript integration. Explore sample code, requests, and file downloads. Boost your app's performance.
10+
811
---
912
# Using the OneDrive API in JavaScript apps (CORS support)
1013

docs/rest-api/getting-started/aad-oauth.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You provide an access token for every API call via an HTTP header:
3636
You access the API by sending HTTP requests to a specific endpoint URL.
3737
The root URL is based on the host name of the server that serves as the REST endpoint.
3838
You can use the discovery API to find endpoints for Office 365 services.
39-
For more information see [Common endpoint discovery tasks using the Discovery Service API](https://msdn.microsoft.com/en-us/office/office365/howto/discover-service-endpoints).
39+
For more information see [Common endpoint discovery tasks using the Discovery Service API](https://msdn.microsoft.com/office/office365/howto/discover-service-endpoints).
4040
Your root URL appears in the next example, where `{tenant}` comes from your discovered endpoint URL:
4141

4242
`https://{tenant}-my.sharepoint.com/_api/v2.0/`
@@ -59,7 +59,7 @@ To sign into OneDrive for Business the first time, your app needs the following
5959
The following steps will walk you through the requests necessary to get all of these values.
6060

6161
The flow follows standard OAuth 2.0 authentication flows and requires calls from a web browser or web-browser control.
62-
See [Understanding Office 365 app authentication concepts](https://msdn.microsoft.com/en-us/office/office365/howto/common-app-authentication-tasks) for general Office 365 authentication info.
62+
See [Understanding Office 365 app authentication concepts](https://msdn.microsoft.com/office/office365/howto/common-app-authentication-tasks) for general Office 365 authentication info.
6363
However, getting all of the required values to use the OneDrive for Business API requires a few additional steps.
6464

6565
The code flow for authentication is a three-step process with separate calls to authenticate and authorize the application and to generate an access token to use the OneDrive API.
@@ -90,7 +90,7 @@ GET https://login.microsoftonline.com/common/oauth2/authorize?response_type=code
9090
| *response_type* | string | Specifies the requested response type. In an authorization code grant request, the value must be code. |
9191
| *redirect_uri* | string | The redirect URL that the browser is sent to when authentication is complete. |
9292

93-
**Note** The redirect URI must match one of the redirect URI that you specified in the [Azure Management Portal](https://manage.windowsazure.com/).
93+
**Note** The redirect URI must match one of the redirect URI that you specified in the [Azure Management Portal](https://portal.azure.com).
9494

9595
#### Response
9696

@@ -226,7 +226,7 @@ The request body is a URL encoded string, with the following parameters:
226226
| *resource* | string | The resource you want to access. This should be the previously discovered **serviceResourceId** value. |
227227

228228

229-
**Note** The redirect URI must match the the redirect URI that you specified in the [Azure Management Portal](https://manage.windowsazure.com/).
229+
**Note** The redirect URI must match the the redirect URI that you specified in the [Azure Management Portal](https://portal.azure.com).
230230

231231
#### Response
232232

@@ -244,7 +244,7 @@ If the call is successful, the response body is a JSON string that including `ac
244244
**Note:** Replace refresh token values that you have previously stored with those returned from subsequent calls to the token service to ensure that your app has a token with the latest expiration.
245245

246246
The value of the **access_token** property can now be used to make authenticated requests to the OneDrive API.
247-
For more info about refresh tokens, see [Refresh Tokens for Multiple Resources](https://msdn.microsoft.com/en-us/library/azure/dn645538.aspx).
247+
For more info about refresh tokens, see [Refresh Tokens for Multiple Resources](https://msdn.microsoft.com/library/azure/dn645538.aspx).
248248

249249
**Important:** Treat the values of `access_token` and `refresh_token` in this response as securely as you would a user's password.
250250

@@ -278,7 +278,7 @@ The page content will always display a generic error message for the user.
278278

279279
If the user selects not to provide consent to your application, the flow will redirect to your redirect_uri and include the same error parameters.
280280

281-
For more info about handling errors, see [Error Handling in OAuth 2.0](https://msdn.microsoft.com/en-us/library/azure/dn645540.aspx).
281+
For more info about handling errors, see [Error Handling in OAuth 2.0](https://msdn.microsoft.com/library/azure/dn645540.aspx).
282282

283283
[app-portal]: http://go.microsoft.com/fwlink/p/?LinkId=193157
284284

@@ -288,11 +288,11 @@ The following topics contain high-level overviews of other concepts that apply
288288
to the OneDrive API.
289289

290290
* [Develop with the OneDrive API](../../index.md)
291-
* [Using Azure Active Directory for authentication](https://azure.microsoft.com/en-us/documentation/articles/web-sites-authentication-authorization/)
291+
* [Using Azure Active Directory for authentication](https://azure.microsoft.com/documentation/articles/web-sites-authentication-authorization/)
292292
* [OneDrive authentication and sign-in using Microsoft accounts](msa-oauth.md)
293-
* [Office 365 authentication concepts](https://msdn.microsoft.com/en-us/office/office365/howto/common-app-authentication-tasks)
294-
* [OAuth 2.0 in Auzure AD](https://msdn.microsoft.com/en-us/library/azure/dn645545.aspx)
295-
* [Authorization Code Grant Flow](https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx)
293+
* [Office 365 authentication concepts](https://msdn.microsoft.com/office/office365/howto/common-app-authentication-tasks)
294+
* [OAuth 2.0 in Auzure AD](https://msdn.microsoft.com/library/azure/dn645545.aspx)
295+
* [Authorization Code Grant Flow](https://msdn.microsoft.com/library/azure/dn645542.aspx)
296296

297297
<!-- {
298298
"type": "#page.annotation",

docs/rest-api/getting-started/app-registration-server.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,33 @@ with the name of your Office 365 tenant.
6363
If you already have an existing Azure AD tenant, you can associate it with
6464
your Office 365 subscription by following these steps:
6565

66-
1. Sign in to the [Microsoft Azure Management](https://manage.windowsazure.com/)
66+
1. Sign in to the [Microsoft Azure Management](https://portal.azure.com)
6767
portal with your existing Azure credentials (for example, your Microsoft ID
6868
such as user@live.com), and navigate to the **Active Directory** node.
6969
2. Choose the **Active Directory** node, then choose the **Directory** tab and,
7070
at the bottom of the screen, choose **New**. In the next dialog box, choose **Use
7171
existing directory**, select the check box, and then choose the check mark in the
72-
lower-right corner. This brings you back to the [Azure Management Portal](https://manage.windowsazure.com/).
72+
lower-right corner. This brings you back to the [Azure Management Portal](https://portal.azure.com).
7373
3. Sign in with your Office 365 subscription information. You will be prompted
7474
whether to use your directory with Azure.
7575
4. Choose **Continue** and a screen appears to confirm your action. Now,
7676
choose **Sign out now**.
77-
5. Close the browser and open the [portal](https://manage.windowsazure.com/) again.
77+
5. Close the browser and open the [portal](https://portal.azure.com) again.
7878
Otherwise, you will get an access denied error.
7979
6. Sign in again to your Azure subscription (for example, with your Microsoft ID).
8080
Navigate to the **Active Directory** node and, under **Directory**, you
8181
should now see your Office 365 subscription.
8282

8383
For more info about setting up an Azure AD tenant, see [Set up Azure Active
84-
Directory access for your Developer Site](https://msdn.microsoft.com/en-us/office/office365/howto/setup-development-environment#bk_CreateAzureSubscription).
84+
Directory access for your Developer Site](https://msdn.microsoft.com/office/office365/howto/setup-development-environment#bk_CreateAzureSubscription).
8585

8686
### 3. Register your app with Azure Active Directory
8787

88-
To authenticate your app, you need to register your app with Azure AD, and provide some details about your app. You can register your app manually by using the [Azure Management Portal](https://manage.windowsazure.com/),
88+
To authenticate your app, you need to register your app with Azure AD, and provide some details about your app. You can register your app manually by using the [Azure Management Portal](https://portal.azure.com),
8989
or by using Visual Studio.
9090

9191
To register your app manually, see [Manually register your app with Azure AD so
92-
it can access Office 365 APIs](https://msdn.microsoft.com/en-us/office/office365/howto/add-common-consent-manually).
92+
it can access Office 365 APIs](https://msdn.microsoft.com/office/office365/howto/add-common-consent-manually).
9393

9494
To register your app by using Visual Studio, see [Using Visual Studio to
9595
register your app and add Office 365 APIs](https://msdn.microsoft.com/office/office365/HowTo/adding-service-to-your-Visual-Studio-project).
@@ -102,7 +102,7 @@ your access token.
102102
as you would a user's password. The secret represents the key to your
103103
application and, if made available, can be used to impersonate your application.
104104

105-
When you register your app in the [Azure Management Portal](https://manage.windowsazure.com/),
105+
When you register your app in the [Azure Management Portal](https://portal.azure.com),
106106
you will need to configure details about your application with the following steps:
107107

108108
1. Specify whether your application is a mobile, desktop, or web application.
@@ -114,7 +114,7 @@ you will need to configure details about your application with the following ste
114114
tenancy you registered it in, or across multiple tenancies.
115115
4. For web apps, generate the app secret and its duration.
116116
5. Specify the permission levels your app requires from the Office 365 API
117-
applications in Azure using [app permissions](https://msdn.microsoft.com/office/office365/howto/application-manifest).
117+
applications in Azure using [app permissions](/office/office-365-management-api/get-started-with-office-365-management-apis).
118118
Using OneDrive API or the file picker requires at least **Read user files**. Uploading, editing, or sharing files
119119
requires the **Read and write user files** permission.
120120

docs/rest-api/getting-started/app-registration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ ms.author: JeremyKe
44
ms.date: 09/10/2017
55
ms.topic: conceptual
66
title: Create an app with Microsoft Graph - OneDrive API
7-
ms.localizationpriority: High
7+
localization_priority: Priority
8+
description: Learn to Register Your App for OneDrive API with Microsoft Graph. Get an Application ID & Secure Your App. Maximize Features with Azure AD.
9+
810
---
911
# Registering your app for Microsoft Graph
1012

0 commit comments

Comments
 (0)