Questions tagged [java-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
780 views

How to get members of Root Site and Communication Site with Graph API

I could get members of Site base on the Group (https://graph.microsoft.com/v1.0/groups/{id}/members). But I could not get the members of Root Site and Communication Site because these sites have not ...
Duong Dam's user avatar
0 votes
1 answer
768 views

creating folder in Sharepoint document library using java code and NTLM authentication?

How to create a folder in Sharepoint document library using java code and NTLM authentication? I am able to create a file but not folder.
kishore p's user avatar
0 votes
0 answers
42 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/...
Ram's user avatar
  • 1
2 votes
2 answers
11k 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 ...
user3296535's user avatar
0 votes
1 answer
3k 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 ...
Franjo Pintarić's user avatar
0 votes
2 answers
2k views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
Krzysztof Majewski's user avatar
4 votes
2 answers
55k 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. ...
User1203's user avatar
1 vote
1 answer
1k 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 ...
Anish Anushang's user avatar
0 votes
1 answer
711 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 ...
Anish Anushang's user avatar
1 vote
0 answers
130 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 ...
Anand's user avatar
  • 1,735
3 votes
1 answer
761 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>...
mikipero's user avatar
  • 185
1 vote
0 answers
412 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 ...
Prasad.Shelke's user avatar
1 vote
0 answers
260 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-...
Prasad.Shelke's user avatar
1 vote
1 answer
2k 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%...
Prasad.Shelke's user avatar
0 votes
1 answer
2k 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 ...
Prasad.Shelke's user avatar
1 vote
0 answers
586 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 ...
Lakshmi's user avatar
  • 31
0 votes
1 answer
2k 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 ...
lakshmi's user avatar
1 vote
1 answer
713 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 ...
Puneet's user avatar
  • 95
1 vote
2 answers
7k 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 ...
a.kozlenkov's user avatar
3 votes
1 answer
5k 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?
RajeshSharepointGeek's user avatar
1 vote
0 answers
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 ...
Joachim Seminck's user avatar
2 votes
1 answer
6k 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 ...
marqueez's user avatar
3 votes
3 answers
7k 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 ...
Sagar Pudi's user avatar
0 votes
0 answers
30 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 ...
Orange Juice Jones's user avatar
2 votes
2 answers
8k 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 ...
Tina Agrawal's user avatar