sharepoint-2013

how to connect sharepoint with php

半腔热情 提交于 2019-11-29 14:55:00
问题 Do anyone know how to integrate Sharepoint and Php. I am trying to develop php app which can connect to Sharepoint.In particular since basically I am website developer, I want my all websites to be connected with Sharepoint. So, simply I want to create Php app such that it works for all the websites. I don't know is it possible or not but I want to give it a try but don't know how to proceed. Any idea/suggestions is welcome. Thanks in advance. 回答1: Try this API In SharePoint Download the WSDL

Check if Current Users belongs to SP group using javascript Client Side Object Model

ⅰ亾dé卋堺 提交于 2019-11-28 21:35:54
I havent found a specific example of how to get the current user and then check if it belongs to a specific sharepoint group, as I havent found anything I cant provide a code, help on the right direction is appreciated. SharePoint 2013 CSOM Prerequisites: compatible with SharePoint 2013 CSOM API only since SP.GroupCollection.getByName Method is not available in SharePoint 2010 How to check if current user belongs to SharePoint group via CSOM (JavaScript): function IsCurrentUserMemberOfGroup(groupName, OnComplete) { var currentContext = new SP.ClientContext.get_current(); var currentWeb =

How to access a sharepoint site via the REST API in Python?

只谈情不闲聊 提交于 2019-11-28 17:57:14
I have the following site in SharePoint 2013 in my local VM: http://win-5a8pp4v402g/sharepoint_test/site_1/ When I access this from the browser, it prompts me for the username and password and then works fine. However I am trying to do the same using the REST API in Python. I am using the requests library, and this is what I have done: import requests from requests.auth import HTTPBasicAuth USERNAME = "Administrator" PASSWORD = "password" response = requests.get("http://win-5a8pp4v402g/sharepoint_test/site_1/", auth=HTTPBasicAuth(USERNAME, PASSWORD)) print response.status_code However I get a

How to authenticate users from sharepoint 2013 web service and active directory

荒凉一梦 提交于 2019-11-28 10:47:10
问题 How can I authenticate users in a java android application using sharepoint 2013 and secondly how to authenticate users using active directory directly. I have to implement both the ways in two different applications. I searched on Google but haven't found the proper ways to integrate them. 回答1: Azure provides an API for authentication for Microsoft Sharepoint. You can login using that else you can open webview for login of sharepoint. Then after login you can store cookies and you can use it

How to access a sharepoint site via the REST API in Python?

主宰稳场 提交于 2019-11-27 20:12:34
问题 I have the following site in SharePoint 2013 in my local VM: http://win-5a8pp4v402g/sharepoint_test/site_1/ When I access this from the browser, it prompts me for the username and password and then works fine. However I am trying to do the same using the REST API in Python. I am using the requests library, and this is what I have done: import requests from requests.auth import HTTPBasicAuth USERNAME = "Administrator" PASSWORD = "password" response = requests.get("http://win-5a8pp4v402g

How to download/upload files from/to SharePoint 2013 using CSOM?

自闭症网瘾萝莉.ら 提交于 2019-11-27 10:41:49
I am developing a Win8 (WinRT, C#, XAML) client application (CSOM) that needs to download/upload files from/to SharePoint 2013. How do I do the Download/Upload? Upload a file Upload a file to a SharePoint site (including SharePoint Online) using File.SaveBinaryDirect Method : using (var clientContext = new ClientContext(url)) { using (var fs = new FileStream(fileName, FileMode.Open)) { var fi = new FileInfo(fileName); var list = clientContext.Web.Lists.GetByTitle(listTitle); clientContext.Load(list.RootFolder); clientContext.ExecuteQuery(); var fileUrl = String.Format("{0}/{1}", list

How to download/upload files from/to SharePoint 2013 using CSOM?

三世轮回 提交于 2019-11-26 22:19:42
问题 I am developing a Win8 (WinRT, C#, XAML) client application (CSOM) that needs to download/upload files from/to SharePoint 2013. How do I do the Download/Upload? 回答1: Upload a file Upload a file to a SharePoint site (including SharePoint Online) using File.SaveBinaryDirect Method: using (var clientContext = new ClientContext(url)) { using (var fs = new FileStream(fileName, FileMode.Open)) { var fi = new FileInfo(fileName); var list = clientContext.Web.Lists.GetByTitle(listTitle); clientContext