APIs para SharePoint Online
APIs para SharePoint Online
 Overview de las APIs de
Office 365 y SPO
 Posibilidades de las APIs
de SPO
 API REST
 Sabor JavaScript
 Sabor .NET
APIs para SharePoint Online
_api
_API
Client/Server/Mobile Symmetrical
OAuth Enabled
600+ Classes
Declarative, Remote Events
Fully Remote
3000+ MethodsODatajQuery Compatible
Private and Public Clouds
JSON
_api
Lists
Sites
Security
User
Profiles
Search
Taxonomy
_api
Feeds
Publishing
Sharing
Workflow
E-
Discovery
IRM
APIs para SharePoint Online
APIs para SharePoint Online
Colección de Sitios, Webs, Listas,
Elementos de Lista, Vistas,
Campos y Carpetas, elementos
de Lista y Documentos
Schemas, Files, and Folders
Posibilidades del MO Cliente
Web Parts,
Seguridad, Tipos
de Contenidos,
Plantillas de
Sitios
Perfiles de usuario,
Suministro de Noticias,
Búsqueda, Taxonomía,
Publicación
Flujos de Trabajo, E-
Discovery, IRM, BCS,
Búsquedas,
Traducciones, ---
Llamadas de domino cruzado
SPO Client SDK: http://www.microsoft.com/en-
us/download/details.aspx?id=42038
Context.Web.Lists
CSOM
Context.Web.Lists[guid]
Web.Lists.GetByTitle ("Title")
Context.Web.Lists[guid].Fields
Context.Web.SiteUsers
/_api/web/lists
REST
/_api/web/lists(‘guid’)
/_api/web/lists/getbytitle(‘Title’)
/_api/web/lists/getbytitle(‘Title’)/Fiel
d
/_api/web/siteusers
API REST URL JavaScript Client Namespace
Web http://weburl/_api/Web SP Microsoft.SharePoint.Client
Search http://weburl/_api/Search SP.Search Microsoft.SharePoint.Client.Search
Taxonomy http://weburl/_api/Taxonomy SP.Taxonomy Microsoft.SharePoint.Client.Taxonomy
BCS http://weburl/_api/BCS SP.BCS Microsoft.SharePoint.Client.BCS
APIs para SharePoint Online
…/_api/SP.UserProfiles.PeopleManager
…/_api/search
…/_api/publishing
…
APIs para SharePoint Online
• _api/web/lists/getbytitle(‘Lista')/it
ems?$Select=Title,EventDate
• _api/web/lists/getbytitle(‘Lista')/it
ems?$Filter=Categoria eq
'Trabajo‘
• _api/web/lists('<guid>')/items$to
p=10
APIs para SharePoint Online
APIs para SharePoint Online
 + fácil de procesar desde
código manejado
 Hay que usar la cabecera
“application/atom+xml” en
las peticiones
 + manejable si se usa
JavaScript (jQuery)
 Hay que usar la cabecera
“application/json”
X-RequestDigest:
(1) http://www.wictorwilen.se/sharepoint-2013-how-to-refresh-the-request-digest-value-
in-javascript
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
//REST URL
string sRESTUrl =
"https://itechcs.sharepoint.com/sites/CO365DeveloperSite/_api/web/lists";
//Petición Web
HttpWebRequest sphwrPeticion =
(HttpWebRequest)WebRequest.Create(sRESTUrl);
sphwrPeticion.Credentials =
new SPCOSM.SharePointOnlineCredentials(sSPOUser,ssPassword);
sphwrPeticion.Headers.Add(
"X-FORMS_BASED_AUTH_ACCEPTED", "f");
sphwrPeticion.Accept = "application/json;odata=verbose";
HttpWebResponse sphwrRespuesta =
(HttpWebResponse)sphwrPeticion.GetResponse();
StreamReader srReader =
new StreamReader(sphwrRespuesta.GetResponseStream());
string sData= srReader.ReadToEnd();
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
Lenguaje
Dinámico
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
APIs para SharePoint Online
 Load() and LoadQuery() inicializan las propiedades
 ExecuteQuery() realiza la llamada al servidor
 Podemos tener excepciones de tipo
PropertyOrFieldNotInitializedException
APIs para SharePoint Online
APIs para SharePoint Online
http://www.metricsthatmatter.com/student/evaluation.
asp?k=16302&i=892358
APIs para SharePoint Online
APIs para SharePoint Online
Developer
Patterns & Practices
2014
Introduction to
Office 365
Development
2015
Deep Dive into
the Office 365
App Model
Deep Dive into integrating
Office 365 APIs with your
standalone web application
development
Deep Dive into integrating
Office 365 APIs with your
mobile device development
Shipping your
Office 365 App
to the
Office Store
Deep dive into
the building blocks
and services of the
SharePoint platform
Deep Dive into Office
365 Development on
non-Microsoft Stack
APIs para SharePoint Online

More Related Content

PPTX
Transformar Personalizaciones al Modelo de Apps de SharePoint
PPTX
SharePoint and Office Development Workshop
PDF
Developing an intranet on office 365
PDF
SPTECHCON - Get Some REST - Taking Advantage of the SharePoint 2013 REST API
PPT
Alfresco As SharePoint Alternative - Architecture Overview
PPT
AppSec 2007 - .NET Web Services Hacking
PDF
Alfresco Day Vienna 2015 - Alfresco 5.0 Product Suite Update + Demo
PPTX
Rest API and Client OM for Developer
Transformar Personalizaciones al Modelo de Apps de SharePoint
SharePoint and Office Development Workshop
Developing an intranet on office 365
SPTECHCON - Get Some REST - Taking Advantage of the SharePoint 2013 REST API
Alfresco As SharePoint Alternative - Architecture Overview
AppSec 2007 - .NET Web Services Hacking
Alfresco Day Vienna 2015 - Alfresco 5.0 Product Suite Update + Demo
Rest API and Client OM for Developer

Similar to APIs para SharePoint Online (20)

PPTX
Designing for SharePoint Provider Hosted Apps
PPT
Programming With Amazon, Google, And E Bay
PDF
Seattle StrongLoop Node.js Workshop
PDF
Exciting New Alfresco REST APIs
 
DOCX
Share point 2013 developer training
PPTX
O365 Meetup Graz -Tome Tomovski - Beyond the limits of SharePoint
PPTX
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
PPT
REST Presentation
PPT
Composite Applications Speaking Tour - Lap Around Office Business Architectures
PPT
Java Script Based Client Server Webapps 2
PPT
Sharepoint Online
PDF
Introduction to SAML 2.0
PPTX
SharePoint Data Anywhere and Everywhere by Chris Beckett - SPTechCon
PPTX
OpenFilter Prototyping Weekend
PDF
Sales force developer_course_outline
PPT
Web 2.0 Application Kung-Fu - Securing Ajax & Web Services
PDF
Getting Started with the Node.js LoopBack APi Framework
PDF
Restful design at work v2.0
PPT
Modified REST Presentation
PPT
The RESTful Soa Datagrid with Oracle
Designing for SharePoint Provider Hosted Apps
Programming With Amazon, Google, And E Bay
Seattle StrongLoop Node.js Workshop
Exciting New Alfresco REST APIs
 
Share point 2013 developer training
O365 Meetup Graz -Tome Tomovski - Beyond the limits of SharePoint
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
REST Presentation
Composite Applications Speaking Tour - Lap Around Office Business Architectures
Java Script Based Client Server Webapps 2
Sharepoint Online
Introduction to SAML 2.0
SharePoint Data Anywhere and Everywhere by Chris Beckett - SPTechCon
OpenFilter Prototyping Weekend
Sales force developer_course_outline
Web 2.0 Application Kung-Fu - Securing Ajax & Web Services
Getting Started with the Node.js LoopBack APi Framework
Restful design at work v2.0
Modified REST Presentation
The RESTful Soa Datagrid with Oracle
Ad

More from Juan Carlos Gonzalez (20)

PPTX
Managed Security in the Power Platform - Advanced Protection for an AI-Driven...
PPTX
Copilot en SharePoint & OneDrive - El camino hacia una gestión documental efi...
PPTX
Llevando la productividad al siguiente nivel: Agentes de Copilot para Sitios ...
PPTX
Llevando la Productividad al siguiente nivel - Agentes de Copilot para Sitios...
PPTX
Llevando la Productividad al siguiente nivel - Agentes de Copilot para Sitios...
PPTX
Securing the Power Platform - What are my options
PPTX
Preparate para la llegada de M365 Copilot con los controles de Gobierno de Sh...
PPTX
Seguridad en Power Platform - Que opciones tengo
PDF
Low Code y Construcción - Acelerando la Innovación Digital
PPTX
Getting Ready for Copilot for Microsoft 365 with Governance Features in Share...
PPTX
Getting Ready for Copilot for Microsoft 365 with Governance Features in Share...
PPTX
Gobernanza con SharePoint Premium de principio a fin
PPTX
Governance in SharePoint Premium:What's in the box?
PPTX
Seguridad en Power Platform - Que opciones tengo
PPTX
Boost your Teams Meetings to the next level with Teams Premium
PPTX
Stream en SharePoint en detalle
PPTX
Power Platform y Teams: ¿Qué platos tengo en mi menú?
PPTX
Digitaliza tus procesos de Aprobación con Approvals en Teams: ¿Qué hay de nue...
PPTX
Stream on SharePoint, an overview - JcGonzalez.pptx
PPTX
Shared channels in Microsoft Teams, an overview
Managed Security in the Power Platform - Advanced Protection for an AI-Driven...
Copilot en SharePoint & OneDrive - El camino hacia una gestión documental efi...
Llevando la productividad al siguiente nivel: Agentes de Copilot para Sitios ...
Llevando la Productividad al siguiente nivel - Agentes de Copilot para Sitios...
Llevando la Productividad al siguiente nivel - Agentes de Copilot para Sitios...
Securing the Power Platform - What are my options
Preparate para la llegada de M365 Copilot con los controles de Gobierno de Sh...
Seguridad en Power Platform - Que opciones tengo
Low Code y Construcción - Acelerando la Innovación Digital
Getting Ready for Copilot for Microsoft 365 with Governance Features in Share...
Getting Ready for Copilot for Microsoft 365 with Governance Features in Share...
Gobernanza con SharePoint Premium de principio a fin
Governance in SharePoint Premium:What's in the box?
Seguridad en Power Platform - Que opciones tengo
Boost your Teams Meetings to the next level with Teams Premium
Stream en SharePoint en detalle
Power Platform y Teams: ¿Qué platos tengo en mi menú?
Digitaliza tus procesos de Aprobación con Approvals en Teams: ¿Qué hay de nue...
Stream on SharePoint, an overview - JcGonzalez.pptx
Shared channels in Microsoft Teams, an overview
Ad

Recently uploaded (20)

PPTX
Presentación powerpoint ---deportes.pptx
PPTX
CHESS final statement to encourage the knowledge about indoor games
PDF
2025 AASM Schedule of Oral Presentation(0818)
PDF
BOOK MUAYTHAI THAI FIGHT TECHNIQUES - ALEXANDRE BRECK
PDF
Women Rugby World Cup 2025 Tickets: Ireland’s Road to Redemption, Squad Named...
PDF
Night Diving in Andaman - A Magical Underwater Expedition post Sunset
DOCX
Football World Cup Tickets: Italy’s World Cup Home Kit Marks 20th Anniversary...
DOCX
FIFA World Cup Tickets: Messi included in Argentina squad for FIFA 2026 CONME...
PPTX
Best All Access Passes me .pptxxxxxxxxxx
PDF
2025 AASM Schedule of Poster Presentation(0818)
DOCX
World Cup Lawrence to Boost Hotel Tax for FIFA 2026 Tourism Surge.docx
PDF
Visual Performance Enhancement in Sports Optometry
DOCX
Europa League Final 2026 Showcase13.docx
PPT
accounting for merchandising two by unknown
PDF
benefits of playing football Physical Health
DOCX
World Cup Tickets Uganda confirms stadium and date for Somalia fixture.docx
DOCX
NFL Dublin Rondale Moore’s Comeback Ends in Heartbreak.docx
PDF
2 BC Lions home games to be moved due to 2026 FIFA World Cup.pdf
PDF
aaam 8/22-23 Schedule of Poster Presentation.pdf
DOCX
Asia Cup 2025 A Painful News for India’s Star Wicket-Keeper.docx
Presentación powerpoint ---deportes.pptx
CHESS final statement to encourage the knowledge about indoor games
2025 AASM Schedule of Oral Presentation(0818)
BOOK MUAYTHAI THAI FIGHT TECHNIQUES - ALEXANDRE BRECK
Women Rugby World Cup 2025 Tickets: Ireland’s Road to Redemption, Squad Named...
Night Diving in Andaman - A Magical Underwater Expedition post Sunset
Football World Cup Tickets: Italy’s World Cup Home Kit Marks 20th Anniversary...
FIFA World Cup Tickets: Messi included in Argentina squad for FIFA 2026 CONME...
Best All Access Passes me .pptxxxxxxxxxx
2025 AASM Schedule of Poster Presentation(0818)
World Cup Lawrence to Boost Hotel Tax for FIFA 2026 Tourism Surge.docx
Visual Performance Enhancement in Sports Optometry
Europa League Final 2026 Showcase13.docx
accounting for merchandising two by unknown
benefits of playing football Physical Health
World Cup Tickets Uganda confirms stadium and date for Somalia fixture.docx
NFL Dublin Rondale Moore’s Comeback Ends in Heartbreak.docx
2 BC Lions home games to be moved due to 2026 FIFA World Cup.pdf
aaam 8/22-23 Schedule of Poster Presentation.pdf
Asia Cup 2025 A Painful News for India’s Star Wicket-Keeper.docx

APIs para SharePoint Online

Editor's Notes

  • #11: Ruta de instalación de los ensamblados: C:\Program Files\Common Files\microsoft shared\Web Server Extensions y en la GAC
  • #15: Ejemplos de parámetros: el Guid de una lista
  • #18: To understand how to use OData as a developer, you must understand how OData URIs are constructed. Each URI has three significant parts, The first part of the URI is the Service root URI which points to a site on the Internet and a path to an entry point such as a .svc file. The next part of the URI is the Resource path which identifies a specific object such as a site, a collection (e.g list) or an entry (e.g. item). The final part of the URI are the optional query string parameters that allow you to request special processing instructions such as filtering and sorting.
  • #19: This is a READ sample. The other CRUD operations follow.
  • #20: Response data format selected with ACCEPT header XML can be easier to deal with from managed code. To get ATOM XML response use "application/atom+xml" JSON is easier to deal with when using JavaScript. To get JSON response use "application/json" When you run REST-based queries against SharePoint 2013 sites, you have the option of having the data returned as either XML in the ATOM format or JSON (JavaScript Object Notation). The default behavior is to return XML but you can change this default behavior to return JSON by including the ACCEPT header with a value of "application/json". If you include the ACCEPT header with an explicit value of "application/atom+xml", this has the same result as the default behavior in that the results are returned as ATOM-based XML. As a general rule of thumb, it is easier to deal with XML-based results when writing managed code such as C# or VB.NET. Likewise, it is easier to deal with JSON results when programming with JavaScript. Note that jQuery makes dealing with JSON results even easier.
  • #21: SharePoint 2013 (and previous versions) uses a client side “token” to validate posts back to SharePoint to prevent attacks where the user might be tricked into posting data back to the server. This token is known by many names;form digest or message digest or request digest. The token is unique to a user and a site and is only valid for a (configurable) limited time.
  • #24: Modificar con parte específica de SPO -------------------------------------------------- If you are making REST calls into SharePoint 2013 using C# or VB.NET, there are a few tips to make things easier. First, .NET 4.0 added a two new classes named HttpWebRequest and HttpWebResponse which provide a few conveniences not offered by their base classes WebRequest and WebResponse. For example, there is a stongly-typed Accept property on the HttpWebRequest object that allows you to set the ACCEPT header. When it's time to retrieve data values from elements within an XML document, it's time to abandon older XML APIs such as XMLReader in favor of Linq to XML and the XDocument class. Retrieving data from an XML document using the Descendants property of an XDocument object as shown above makes dealing with nested elements and XML namespaces so much easier.
  • #25: Modificar con parte específica de SPO -------------------------------------------------- If you are making REST calls into SharePoint 2013 using C# or VB.NET, there are a few tips to make things easier. First, .NET 4.0 added a two new classes named HttpWebRequest and HttpWebResponse which provide a few conveniences not offered by their base classes WebRequest and WebResponse. For example, there is a stongly-typed Accept property on the HttpWebRequest object that allows you to set the ACCEPT header. When it's time to retrieve data values from elements within an XML document, it's time to abandon older XML APIs such as XMLReader in favor of Linq to XML and the XDocument class. Retrieving data from an XML document using the Descendants property of an XDocument object as shown above makes dealing with nested elements and XML namespaces so much easier.
  • #26: Modificar con parte específica de SPO y funcionando… -------------------------------------------------- This slide shows the code which demonstrates creating a new list using client-side C# code which uses the new REST entry point. The first task it to parse together URL to point to lists collection which is _api/web/lists. The next task is to add the X-RequestDigest header which includes the value of the form digest. This example also sets the ContentType header to a value of application/atom+xml to tell SharePoint it is passing XML as opposed to JSON. Next, you must create an XML document that contains an Entry as defined by ATOM and conforms to the structure used by SharePoint 2013. The last task is to execute the request using an HTTP POST operation.
  • #27: API REST desde PowerShell y desde .NET
  • #35: Demo de NAPA
  • #37: Load() and LoadQuery() inicializan las propiedades. ExecuteQuery() realiza la llamada al servidor. Podemos tener excepciones de tipo PropertyOrFieldNotInitializedException.
  • #38: This is a READ sample. The other CRUD operations follow.
  • #39:  SP 2013 Client Browser CAML Designer Scripts PowerShell: El de Obtener Sitios de una Colección, el de Flujos
  • #43: Transform your code - Providing App Model Patterns for common Full Trust Code scenarios 60+ Visual Studio projects Common scenarios