Back to project page o365api-android-get-events-app.
The source code is released under:
MIT License
If you think the Android project o365api-android-get-events-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.mattleib.myinboxapplication; //w w w .j a v a 2s. c om /** * Created by mattleib on 1/23/2015. */ public class Constants { /** * Production Values */ public static final String AAD_Client_ID ="af9ef21e-b71b-4b01-9eb6-1d16a8c9ed22"; //public static String AAD_RedirectUri = "app://com.example.mattleib.myinboxapplication"; public static final String AAD_RedirectUri = "https://myinboxapplication"; public static final String AAD_Authority = "https://login.windows.net/common"; public static final String O365_ExchangeOnline = "https://outlook.office365.com/"; public static final String O365_UserHint = ""; //public static final String O365_UserHint = "garthf@oauthplay.onmicrosoft.com"; public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$orderby=Start"; //public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$top=50&$orderby=Start"; //public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%sT%sZ&enddatetime=%sT%sZ&$top=50&$orderby=Start"; /** * PPE Values */ public static final String PPE_AAD_Client_ID ="658a894e-1b57-40da-a350-061462eb5b77"; public static final String PPE_AAD_RedirectUri = "https://myinboxapplication"; public static final String PPE_AAD_Authority = "https://login.windows-ppe.net/common"; public static final String PPE_O365_ExchangeOnline = "https://sdfpilot.outlook.com/"; public static final String PPE_O365_UserHint = ""; //public static final String PPE_O365_UserHint = "mattleib@ntdev.microsoft.com"; public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$orderby=Start"; //public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$top=50&$orderby=Start"; //public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%sT%sZ&enddatetime=%sT%sZ&$top=50&$orderby=Start"; /** * Program Runtime constants */ public static class PreferenceKeys { public static final String CalendarTimeSpan = "PREF_CALENDAR_SPAN"; public static final String UsePPE = "PREF_USEPPE"; public static final String UseCoolColors = "PREF_USECOOL"; public static final String RefreshToken = "PREF_REFRESHTOKEN"; public static final String DoNotShowPastEvents = "PREF_NOPASTEVENTS"; } public static final int PICK_PREFERENCE_REQUEST = 1; public static final int IDX_PROD = 0; public static final int IDX_PPE = 1; public static final long OneMinuteInMilliseconds = 60000; public static final long OneHourInMilliseconds = 3600000; public static class VisualCues { public static final String EventNow = "==> "; } }