Easiest way to export surveymonkey results - surveymonkey

I'm looking at the simplest way to get surveymonkey results without logging into SM and manually exporting them. I see they have an API. I'm assuming that we would need to create a program that can utilize a REST webservice to return the survey results?
Are there any 3 party vendors who have already created something to do this so we don't need to reinvent the wheel? If not, what would be the easiest way to go about this, since I have limited access to programmers.

I don't know about third party vendors at the moment that have already created an export tool, but you can export your responses with the api.
If you're pulling out responses you're probably looking for the bulk endpoint.
You can see examples in the docs, but you would just have to do a GET request to that endpoint, an example cURL looks like this:
curl -X GET -H "Content-Type: application/json" -H "Authorization: bearer <your_access_token>" -H "https://api.surveymonkey.net/v3/surveys/<survey_id>/responses/bulk?api_key=<your_api_key>"
You can also click the Run in Postman button to open an API tool to test with.
For those looking for third-party tools, you can follow our partners page to follow new apps and integrations that are available and partnered with SurveyMonkey. You can also search SurveyMonkey on github there are many developers who publish SDKs and other tools to make using the API easier.

Related

Implement OAuth2 flow with authenticated code grant type using REST API without front end

I have to use Oauth2.0 with grant type "authorization code". The resource server is different party and my side will be the client. I am using the web browser and getting the code manually. From the code I am getting the access token and able to call the API manually. This same process I will have to do using REST api I don't have any front end for my application as it's monthly cron job. I have searched but could not find any examples related to this using REST API. Will it be possible to implement this using REST API ? Which approach will be suited here?
OAuth is based on different grants or flows for different types of client:
A web browser should use the Authorization Code Grant
A Cron job should use the Client Credentials Grant and just send an HTTP request similar to that below:
curl -k -X POST \
https://localhost:8443/oauth/v2/oauth-token \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=server&client_secret=Secr3t!'
The component that handles all of these messages is the Authorization Server (AS). For your Cron job you need to get the other party to configure an OAuth Client with that flow in their AS, as in this article.
You cannot reliably use code flow in a Cron job, since it involves browser actions such as following redirects and autoposting forms. The API owners need to provide you with an option suited to your client.

How to use the Appery.io REST API with Ruby on Rails to retrieve information from the Appery.io database?

How can I access the Appery.io (or any future db) that is exposed to the REST API using RoR?
So I have an app i built using Appery.io and I also created a test app using RoR that I would like to use to pull information from the Appery.io db and display it on my RoR app.
I am somewhat familiar with REST and get the idea of what it is doing but I am not to certain on how to connect or make a connection from my RoR app to my Appery.io app. Appery.io has the following documentation for their db api, Appery.io DB API .
I have been looking around and also have seen people mention the following gems for HTTP request:
Weary
HTTParty
RestClient
Would I use one of those? I also read about using Active Resource as a possible solution?
Any help with getting started or a tutorial or article to point me in the right direction would be very helpful.
Thanks!
You won't be establishing an ongoing connection, each request/response will be a single query to your Appery DB. You authenticate those calls using a custom header with API key as defined in the documentation. There's an example using cURL that might be a good place to start playing with the API before you pull it into your RoR app. That example shows you how to get your key, too.
It looks like you can use the predefined APIs, or you can define a custom REST API associated with your Appery app? Instructions for building an API appear to be here.
Once you get the calls working from cURL (or other web request client of your choice), adding the calls to the RoR app should be more straightforward. Any of those gems could probably ease that process: I've only used RestClient personally, but found it very straightforward.
Any of those call methods (cURL, other clients, the gems, etc) will allow you specify your URI, method (e.g. GET or POST), headers, request body (where appropriate), and will allow you to examine your response. Take a look at the gem documentation to see how those map exactly - it will vary slightly from tool to tool.
If you don't have prior experience with calling external APIs, and would like a conceptual explanation, I like this article as a (very short!) beginner's guide.

Integrating Square with Rails project

I was wondering if anyone has integrated Square with their rails projects and could point me in the right direction in that I don't see any easy to use rails tutorials to process different payments online.
I saw their api and can get the curl commands, such as.
curl -H "Authorization: Bearer Personal_Access_Token" https://connect.squareup.com/v1/me
Though I thought there is probably a better way than doing it with those kind of commands (such as This curl rails tutorial)
Square now maintain a ruby gem which wraps their APIs: https://github.com/square/connect-ruby-sdk

How to programmatically obtain OAuth2 client credentials for Google API

I'm trying to create a redistributable web application that will integrate with Google Analytics through the Google Reporting API. Customer will install the application on their server.
I'm following this tutorial (I'm using PHP, but I believe this is not of importance for my question)
https://developers.google.com/analytics/resources/tutorials/hello-analytics-api
This works fine. No issues there.
However I can't figure out one missing element:
The tutorial starts with sending me to the Google APIs console where I have to create and configure a new API project and create and configure a client ID.
That's a lot of work that requires fairly technical knowledge (redirect url, selecting correct API, error-prone copy-and-pasting, etc.)
So my questions:
Is there an API so I can programmatically set this up for my user?
If that's not possible, is there a more user-friendly way to obtain Analytics reporting that is future-proof? (I noticed they are currently deprecating a few older APIs)
Unfortunately that's AFAIK not possible.
You could go one of the following ways:
Move client_id and client_secret to some configuration file and help your customer with deployment.
Show a one-time setup wizard for your app and guide your customer step-by-step. There you can at least provide him with the right callback URLs.
Regard your application as "installed application" and instrument curl or something similar for sending the requests.

How can I get twitter running on my local server?

I want to put the Twitter service on my server and customize it for my purpose. I have no idea how it works.
My goal is to communicate to your own Twitter server rather than the original twitter server and serve my purpose.
You should check out: StatusNet. It is an open source micro blogging platform. From their site, you can download the source and deploy it on your own server. Once you have it installed you can customize it to your liking.
Twitter isn't an Open Source project - they don't provide their server code.
From my experience at another company deploying very widely distributed systems, the chances are there's a bucket-load of infrastructure you'd need to get running first - complete overkill for a single-server solution, but vital for a global service with many millions of users. In other words, even if Twitter did provide their code, it probably wouldn't be an appropriate solution for your situation.
The actual Twitter (twitter.com) service is proprietary, you can't run it yourself.
There are plenty of open source twitter clones out there. The more general name is "microblogging". Pinax for example has basic microblogging. Try searching google for 'open source microblogging' for other projects.
I don't believe the Twitter platform is freely available to the general public. If you want to make your own "Twitter server", you're going to have to clone the service yourself.
You can't run Twitter on your own server, but you can write your own application that talks to Twitter through Twitter's API.
It all depends on what you mean by "customizing" Twitter. There are many applications like Twitpic and TweetDeck that are built "on top of" Twitter. They add their own functionality while leaving Twitter to do the "heavy lifting".
For example, I have written a personal project for moderating a stream of tweets. This application runs on my local server, but it gets its data by querying Twitter's API.
There are two main advantages to extending rather than rebuilding Twitter:
It takes a lot less effort because you can reuse all the basic functions of Twitter
You can take advantage of Twitter's huge user base. Even if you succeeded in cloning Twitter, it would be far less interesting than the original because Twitter works by strength of numbers.
You could use Wordpress and get the twitter developer add in then get a api code from them and there users can use your site and vice versa also apps for twitter will work for your site.
Wow. That's a highly ambitious request that you have there. Twitter isn't like Wordpress, there's no .org version that can be downloaded and run locally. Twitter is a highly scalable service that is designed to run on large scale servers.
Sorry to be the bearer of bad news to you on this.

Resources