Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [java-api]

The tag has no usage guidance.

0
votes
2answers
348 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0
votes
2answers
4k 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
1answer
1k 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
549 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 ...
0
votes
1answer
940 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
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 ...
1
vote
0answers
79 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 ...
1
vote
0answers
198 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
165 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
255 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
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 ...
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 ...