asp.net - login to the SharePoint 2013 using c# -
is way login sharepoint 2013 using c# code , token of sharepoint 2013, if yes how can do? means user put username , password client side , auth window auth configured on sharepoint 2013 in case please specify sharepoint 2013 config also
now created api in mvc , it's working netwrokcredential class available in c# not getting token sharepoint
you can use client side object model create context credentials.
using (clientcontext context = new clientcontext("http://site_url/")) { context.credentials = new networkcredential("user_login", "user_password", "domain"); list list = context.web.lists.getbytitle("my list"); context.load(list); context.executequery(); console.writeline(list.id); console.readkey(); }
Comments
Post a Comment