I have some SharePoint 2013 libraries and lists and now I want to connect these with my iOS 11 App (coded in Swift 4). In my App I want to retrieve data from my SP lists and send data back to SharePoint also. Does anybody know how to do this in Swift 4? I don't know how to authenticate my users - thank you so much!
We can use Swift to call SharePoint REST API to retrieve data.
About how to do authentication, we can use Swift to do Windows NTLM to achieve this.
More information we can refer to this thread: Swift 3 NTLM authentication
More information about SharePoint REST API for your reference: SharePoint REST API
Related
We are presently calling Salesforce using their SOAP API in our app. It is .NET Framework based (written in C#).
We're trying to move it to .NET Core which does not support System.Web. The Salesforce SOAP client is built in VisualStudio using WSDL and that creates code using System.Web.
Salesforce also has a REST API, but unfortunately it using OAuth for authentication and our system is used by many of our customers on servers that there is no one on it to respond to an OAuth login. So we can't use that.
What's our best option here?
I'm using the outlook calendar rest api from Salesforce. To continuously leverage the calendar API I need to get authorisation code, access and refresh token.
I have been able to get the Authorisation code by hitting the API. How to get the access token using development code to use the outlook calendar rest API.
Please find the list of AAD authentication libraries here:
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-libraries
I found this tutorial in Python very helpful for getting access codes:
This tutorial uses Microsoft Graph (which covers several Microsoft products including Microsoft Outlook) rather than the outlook REST API (which covers just Outlook).
https://learn.microsoft.com/en-us/outlook/rest/python-tutorial
At first, I thought setting up a Django server was overkill. Then I realized that I wanted a way for my Python instance to capture the access code after going through single-sign-on. (I MUST use my browser for single-sign-on because my institution uses multi-factor authentation.) Having a Django server is a natural way to do this.
So I created a new PyCharm Django project (which is straight-forward in PyCharm) and began following the tutorial.
I found it essential to continue following the tutorial all the way through displaying my emails to avoid getting authentication errors -- deviate from the tutorial, and I got error messages (such as this one) that were unpenetrable.
I'm working with the REST API for Team Foundation Server and Visual Studio Online. I am looking for a rest call which will tell me what collections the user has access to.
I cannot find a REST call which will allow me to view this information. Is there a REST call that will let me view this information for an authenticated user?
Try this:
[tfs url]/_api/_common/GetJumpList?showTeamsOnly=false&__v=5&navigationContextPackage={}&showStoppedCollections=false
You can capture the request by using developer tool: Using Windows Internet Explorer Developer Tools Network Capture
The following works for Azure DevOps 2020:
[tfs url]/_apis/projectCollections?$top=1000
This is my first time working with Office 365 APIs. What we wanted to achieve is to retrieve users email from Office 365 and display the content in our Java Web Application.
Few thinks I looked through:
It is recommended not to use basic authentication but rather OAuth or OpenId
Rest API is the standard.
Should we register our application in to Azure AD ? Do we have to use for every new user or is it only a one time setup ?
I would really appreciate it if you point me to any sample source code to refer too. Feel free to suggest me any recommendations.
Should we register our application in to Azure AD ? Do we have to use for every new user or is it only a one time setup ?
Yes you must register your application to use OAuth, which is required by the REST API. I recommend you register in the Application Registration Portal at http://apps.dev.microsoft.com/. You can login to the ARP with an Office 365 account OR a Microsoft account. This allows you to use the Azure "v2" OAuth model, and to access Outlook.com accounts in addition to Office 365.
Registration is a one-time thing, assuming you want to make your web application multi-tenant.
There's a walkthrough for Java/Spring web app here: https://dev.outlook.com/restapi/tutorial/java
Finished source code here: https://github.com/jasonjoh/java-tutorial
I am looking to build a .Net application that will connect to Quickbooks Online. This application is not intended to be uploaded to the Quickbooks Online App Center. I simply want to build a .Net application that can connect to my personal Quickbooks Online account. I am not understanding difference and purposes for using IPP, .Net DevKit, AggCat DevKit, SDK, Intuit Anywhere, etc.
I joined IPP here: http://developer.intuit.com/ I eventually would like to allow my program to allow connection to other Quickbooks Online accounts, but for now I simply want to connect to my Online account. Is there a basic setup (i.e. a Hello World example) I could follow?
In appcenter.intuit.com (Manage My Apps tab) I am seeing my "Quickbooks Online" => "Launch App" button that takes me to my Online account.
I am not sure when I would use IPP .NET DevKit 2.0 and/or IPP .NET AggCat DevKit 1.0. I am thinking I want to use AggCat. I have reviewed AggCat Authorization documentation and see OAuthRequestValidator requires AccessToken and AccessTokenSecret. I do not see these fields anywhere. I do have an OAuth ConsumerKey and OAuth ConsumerSecret (as well a SAML Identity Provider ID and x.509 Public Certificate Serial Number). .
If you read the Intuit Anywhere FAQs you'll find these questions/answers:
Q: What are the requirements for implementing Intuit Anywhere?
A: Your app
must: Be a web app available for use within a browser, that is sold as
service (SaaS, including transactional pricing based) offering that
you sell to multiple customers. Mobile extensions to your SaaS app are
supported.
And:
Q: I want to integrate my custom (non-SaaS, single-tenant) solution with Intuit Anywhere. Can I do this?
A: Not today, but we are considering it.
So, because you indicated:
I simply want to build a .Net application that can connect to my personal Quickbooks Online account.
You are not eligible to build for Intuit Anywhere/Intuit Partner Platform/Aggregation APIs/etc.
So, to answer your other questions:
I am not understanding difference and purposes for using IPP, .Net DevKit, AggCat DevKit, SDK, Intuit Anywhere, etc.
IPP is the platform on top of which a lot of Intuit's newer services are built (including Intuit Anywhere and the AggCat APIs)
.NET DevKit is for accessing Intuit Anywhere/Intuit Data Services for SaaS apps
AggCat DevKit is for accessing financial information via Intuit Anywhere (e.g. like how Mint.com sucks data out of your bank accounts, etc.)
The QuickBooks SDK is the other way to access QuickBooks data (the other being Intuit Anywhere/the DevKits) - this is the route you should take because you're not a SaaS application.
Intuit Anywhere is the particular authentication scheme that the DevKit's use to access the Intuit Partner Platform.
I am not sure when I would use IPP .NET DevKit 2.0 and/or IPP .NET AggCat DevKit 1.0.
Neither. You're not eligible to use IPP, so you have to use qbXML instead.
You can find some information about connecting to QuickBooks Online using qbXML on our QuickBooks integration wiki. The easiest way to get started is to register in DESKTOP mode, and then use some of the provided example .NET code for QuickBooks Online.
In appcenter.intuit.com (Manage My Apps tab) ...
AppCenter is completely inapplicable to you - since you're not a SaaS app, you're not eligible to build for it.
I am not sure when I would use IPP .NET DevKit 2.0 and/or IPP .NET AggCat DevKit 1.0.
If you're a SaaS app, then the:
.NET DevKit when you want to access data in QuickBooks
.NET AggCat when you want to access bank account information
If you're not a SaaS app, then you can't use either.