How to Connect to SharePoint Site via REST interface.

%3CLINGO-SUB%20id%3D%22lingo-sub-1238646%22%20slang%3D%22en-US%22%3EHow%20to%20Connect%20to%20SharePoint%20Site%20via%20REST%20interface.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1238646%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20writing%20a%20C%23%20application%20that%20connects%20to%20an%20on-premise%20SharePoint%20implementation.%26nbsp%3B%20I%20am%20looking%20to%20use%20the%20REST%20interface%20and%20follow%20the%20guidance%20listed%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fcomplete-basic-operations-using-sharepoint-rest-endpoints%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fcomplete-basic-operations-using-sharepoint-rest-endpoints%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fget-to-know-the-sharepoint-rest-service%3Ftabs%3Dcsom%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fget-to-know-the-sharepoint-rest-service%3Ftabs%3Dcsom%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20am%20stuck%20on%20establishing%20the%20initial%20connection%20to%20get%20the%20%22accesstoken%22.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20you%20do%20this%20with%20REST%20and%20not%20with%20ClientContext%20or%20any%20SP%20libraries%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20-%20Greg.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1238646%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi,

 

I'm writing a C# application that connects to an on-premise SharePoint implementation.  I am looking to use the REST interface and follow the guidance listed below.

 

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoin...

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?t...

 

However, I am stuck on establishing the initial connection to get the "accesstoken".  

 

Does anyone know how you do this with REST and not with ClientContext or any SP libraries?

 

Is this possible?

 

Thanks - Greg.

0 Replies