Questions tagged [java-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
5k views

Sharepoint integration using java program

We are trying to connect to Sharepoint 2013 using rest based api using a java program. Our code is - DefaultHttpClient httpclient = new DefaultHttpClient(); List<String> authpref = new ...
1
vote
2answers
10k views

Connect to Sharepoint Online REST API using Java

I'm trying to connect Sharepoint online REST API using Java. Retrieved cookies -rtfa and fedAuth. Also got xForm Digest value and trying to authenticate. But it always throws Authentication error. ...
-1
votes
0answers
22 views

Rest call is not working for subsites with subfolders

Rest API call is not working for post request to sub-sites with sub-folders. The code is similar to the link I attached. Can anyone provide some info on this topic? Connect to Sharepoint Online ...
1
vote
1answer
2k views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...
0
votes
1answer
770 views

Aquire access token via HTTP request

I'm writing a Java app that aquires a token via the provided MS utility lib called adal4j. It provides finished methods, I just need to provide the username, password, authority and my clientid. The ...
1
vote
1answer
1k views

Share document to multiple users using REST api in SharePoint 2013

I am using SharePoint 2013 rest api. I want to share SharePoint document among multiple users Here is my rest endpoint https://XXXXXX.sharepoint.com/sites/XXXX-Test-SharePoint/_api/web/Lists(%27%...
0
votes
1answer
1k views

Access denied. You do not have permission to perform this action or access this resource. for getUserpermissions

I am trying to get permissions of user by consuming REST api from Java Client and after executing code . it shows Access denied. You do not have permission to perform this action or access this ...
0
votes
0answers
13 views

Paging in sharepoint 2013 for JAVA REST API [duplicate]

I'm trying to implement sharepoint pagination in a way that you send how many items to skip and retrieve the next n number of items. Is there a way to go about it? https://sharepoint.com/_api/web/...
0
votes
2answers
409 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0
votes
1answer
243 views

How could I get items present inside Site Asset of a Team Site?

Through the following url : https://graph.microsoft.com/v1.0/sites/{siteId}/drives I could get all user created document libraries and Documents (a system created document library), but I could not ...
1
vote
1answer
583 views

How could I get all root level sites (excluding sub site) using Microsoft Graph API?

I could get all site (including root level site as well as sub site) by using the following url : https://graph.microsoft.com/v1.0/sites?search=* Is there a better way to get all the root level sites ...
0
votes
2answers
5k views

How to login into Sharepoint Office 365 via REST API

I've been working for a while with SharePoint 2010 via REST API in my Java project. For example, to list items under some directory in my SharePoint storage, I was doing like this: NTCredentials ...
1
vote
0answers
88 views

Java Library to fetch User Details from SharePoint User Profiles

I am trying to perform automation testing on a SharePoint add-in which has the same functionality as of a Staff Directory. I am using TestNG Framework on Selenium Tool with Java Language. For ...
3
votes
1answer
377 views

Authentication to online Sharepoint

I am authenticating with cookie to online Sharepoint, as answered here: REST - Authentication to online Sharepoint When I try to authenticate I get 401 error. This is my code: List<String>...
1
vote
0answers
230 views

Getchanges() rest api fetching only 1000 records

I am using sharepoint rest api to fetch all change logs of a sub site using https://XXXXXX.sharepoint.com/sites/XXXX-Test-SharePoint/_api/web/getchanges But it is fetching only 1000 records I want ...
1
vote
0answers
190 views

Retrieving Sub Site data Rest Api is not working for java code

I am trying to get last modified Sub-Sites from sharepoint site using Sharepoint rest api and executing rest calls using Java I am using below url: https://XXXXX.sharepoint.com/sites/XXXX-Test-...
1
vote
0answers
270 views

How to update folder in SharePoint REST API

I wrote a java code to update(rename) a folder in SharePoint based on the reference in the link ( https://msdn.microsoft.com/en-us/library/office/dn292553.aspx) Example, We are updating(renaming) a ...
1
vote
1answer
461 views

Get SharePoint Document Id Programmatically Java

I have SharePoint 2013 site mounted as a network drive. I am accessing the document library through Java code, and want to know how to get the unique Document Id that SharePoint maintains for each ...
0
votes
1answer
1k views

How to get sharepoint access token

I am using SharePoint account like in screenshot here I am trying to get folder via SharePoint REST API but I am unable to pass access_token because I dont know how to fetch access_token from ...
3
votes
2answers
5k views

How to create a folder in Sharepoint using Java and RESTFul API?

This is my Sharepoint site http://sp2k13/sites/ifsp/ and I would like to create a folder using Sharepoint RESTFul API with Java. I have already gone through Working with folders and files with REST ...
1
vote
0answers
2k views

Keep getting a 400 Bad Request when trying to create a Site via REST API

I'm quite new to Sharepoint stuff, and currently am trying to interact with the REST API. I have been able to get all kinds of data without much problems by sending GET reuqests, but sending POST ...
2
votes
1answer
3k views

How can we access list data of SharePoint Online through the Java API?

We have running SharePoint online application and Java API user need to fetch the data of list of SharePoint online. How can we access these data through the Java API?
1
vote
1answer
3k views

How to access Excel cells hosted on Sharepoint (Office 365) using Java client?

I host my site in asphostportal and I am trying to build a Java clinet that connects to Sharepoint (mysite.sharepoint.com) and grabs an excel file. I used the Excel services WSDL file, however the ...
0
votes
0answers
25 views

create or copy document in sharepoint using client object

I want the user to press a button and this creates or copies documents (Excel) into a document library on the same sharepoint site. There are many examples showing how to do this for a list but how ...