How to pull a Sharepoint List with a Rails app? - ruby-on-rails

I would like to enable a rails app to pull from a sharepoint list in order to update a model. Has anybody meshed up these two things?

Have you tried to use the SharePoint Web service? you have to use SOAP library
to access the wsdl and to use the specified credential
http://yoursharepoint-site/_vti_bin/Lists.asmx?wsdl
There's multitude of web-service methods you could use to manipulate list on List.asmx web service.
I was implementing a code in PHP for it, and this link that help me to get started to access the web-service and use GetListItems method
http://davidsit.wordpress.com/2010/02/23/reading-a-sharepoint-list-with-php/
you'll get the idea

Related

Is there a way to use EC2 as backend for iOS app developed on Monaca?

We created a webapp (all code is on EC2 server) and now, we are trying to create an iOS app using Monaca, which is based on OnsenUI/Cordova.
We would like to use Monaca for the "front-end" and leave EC2 as the "back-end". What would be the best way going about this? Apologize for the loose language, we're novices. Any guidance, suggestions, and etc. are GREATLY APPRECIATED.
You would need to create and expose a webservice endpoint with methods that handle your requests. In my apps I create a WCF service using C# in Visual Studio then I call the exposed methods using jQuery ajax or JavaScript's XMLHttpRequest(). You also need to allow CORS on the server.

Azure DevOps Extension Development without Client Library

I am trying to write an Extension for Azure DevOps 2019 Server which will list the available dashboards and allow them to be deleted.
I have already created an extension and have used the REST Client to get work items. As per here: https://learn.microsoft.com/en-ca/azure/devops/extend/reference/client/rest-clients?view=azure-devops
However it appears that there is no REST Client for the API Dashboard functions that I need to use. How can I make calls to the API from within an Extension when there is no REST Client available? I can't find an example of this.
You can use azure-devops-node-api that have methods to interact with the dashboards.
In addition, you can use the Dashboard Rest API and make Http request like every rest api call, you can read here "5 Ways to Make HTTP Requests in Node.js".

Workday - How to programmatically get list of WSDLs in Workday

I am working on developing an integration with Workday. Under my initial analysis, I found that Workday provides multiple wsdls for different modules like "Human resource", "Inventory" etc. I can see this complete list at https://community.workday.com/sites/default/files/file-hosting/productionapi/operations/index.html
I am trying to understand how I get get this list progamatically in my integration so that my user can select one of the wsdls rather than typing in the full name of WSDL. Please share your thoughts on this.
You can programatically retrieve a list of all web service operations by creating a Custom Report based on the "Public Web Services" data source. The report can then be exposed as a RESTful WS for easy retrieval.
Some fields you can include in the report are: Web service, supported operations, api version, endpoint url, WSDL url, etc, etc.
This is highly customisable, in the sense that you can query the RESTful WS Report for specific versions, specific operations, etc, via Prompts / URL Params.
The report-as-a-service, supports also a variety of output formats as well as its own WSDL.
The purpose of a SOAP WSDL is to generate a client stub, i.e. a model that lets your client interact with objects exposed or consumed by the service provider. You don't interact with a WSDL at runtime - you interact with the stub. If you want to make multiple services available, you have to include each WSDL in your client application at compile time and generate their stubs. The services in a given API version do not change, so there isn't a reason to do this dynamically.
To add to the query asked, what we are trying to understand is that whether there an API call/request which we could hit to get the list of web services available to populate it on the UI to select from it.
For Example: In this link, https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html, we have Absence_Management, Academic_Advising, Academic_Foundation and so on and Now, if I want it to be displayed to the end user so that He can select the webservice to be used and accordingly we could download the WSDL as to work on it.

Accessing third part website-ruby

I did some web search and found nothing for the question i have with me, so I'm posting it here. I wants to build a simple Ruby On rails web application which will be used to display the search result from a third party ebsite without any API avilable. (ex: For example when a user type a keyword and click search i need to get the response from google.com and display that to user in my application).
How can i achieve this?
I hope scrapping is not an advised solution.Is there any advisable techniques(like SOAP 0r REST API).
NOTE: The website is a public government website.i need to access the search from my application(It has no built in API for this purpose).
Google has a search api that you can use https://developers.google.com/custom-search/json-api/v1/overview
and there is a gem available.
https://github.com/google/google-api-ruby-client

exposing part of my parse.com api to other developers via ouath 2.0

It's now trivial to create a web app that sits atop Parse.com. Now that I have this webapp, I want to expose parts of it to other developers via an oauth accesible api. So, they can develop an app that lets my site users 'give them permission' via oauth and they can now access the api.
How would I start going about doing this?
Update: After #Mubix response, I felt the following clarification would help
Currently I am accessing Parse from the server via a REST api, to get around any javascript security issues re:api keys etc. So, the api would be served of a server other than Parse. Also, the server code is in javascript / nodejs. I came across https://github.com/jaredhanson/oauth2orize which seems a likely candidate, was wondering how others are doing it and if anyone has actually gone a further step and integrated Parse access.
Hmmm .. Intereesting question!
Legal:
First of all their ToS doesn't seem to prohibit what you are trying to do but you should read it carefully before you start.
Implementation:
While parse doesn't provide feature to build your own APIs you could implement something yourself. You could treat the third party developers as users of your app. And you can use the ACL to control access.
Problems:
I don't see any way to implement oAuth entirely within parse.
How will third party apps access your API? Ideally you would like them to use a REST interface but with the parse.com REST API you won't be able to manage access to different parts of your data.
Conclusion:
It seems like too much trouble to implement the API entirely within parse. I would suggest that you write a thin API layer that takes care of auth and uses parse as the backend. You can use one of the service side libraries available for parse. eg. PHP Library, Node Parse.

Resources