FAQ Database Discussion Community


Authentication request returned unexpected result: 404

c#,asp.net,.net,api
Exception Details: Google.GData.Client.GDataRequestException: Execution of authentication request returned unexpected result: 404 Here is my code: protected void Button1_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); ds.Tables.Add("GmailContacts"); ds.Tables[0].Columns.Add("EmailID"); RequestSettings rs = new RequestSettings("Gmail", txtUserName.Value, txtPassword.Value); rs.AutoPaging = true; ContactsRequest cr = new ContactsRequest(rs); Feed<Contact> feed = cr.GetContacts(); foreach (Contact...

Convert youtube video to mp3 using Quick MP3 API

php,api,youtube,mp3
I need convert youtube video to mp3 using Quick MP3 API. http://www.quick-mp3.com/api/v1/docs/ my code example is : <?php $url="http://www.youtube.com/watch?v=qpgTC9MDx1o"; // i need to fetch video informations and get mp3 download link ?> Thank you....

AngularJS resource query is misinterpreting object composed by arrays

php,angularjs,api,angular-resource
I have the following resoure: var get = $resource('http://localhost/', {}, { query: { method: 'GET', headers: { 'Content-Type': 'application/json' }, params: { 'a': [10, 20, 30] } } }); My problem is that AngularJS is translating this into a call for this url: http://localhost/api?a=10&a=20&a=30 On the other end (http://localhost/api), I...

Include and group JSON by parent model

ruby,json,api,ruby-on-rails-4,group-by
I am currently calling an API to get a publisher's Books. I am then grouping each book into different their respective story Arcs. Everything works great and I am able to retrieve the JSON in my app. But, I'd like to change my current JSON response and remove the JSON...

Retrieving values from a php service in HTML

javascript,php,html,mysql,api
I am trying to build a website that displays a google map with a user location (lat/long) from a php service that I wrote. I already have a php script that gets the lat/long from a mobile app (via POST from the client), stores it in a DB, and read...

Stuck with nested serializer using Django Rest Framework and default user

django,api,rest,django-rest-framework,serializer
The models and serializers are described in the pastebin: http://pastebin.com/ZxzxWY7V In my database I have a user which also has a member profile and a set of credentials attached to it. Now... when I run this as is and try to pull a user using the AuthUserModelSerializer I get the...

dimensions not returned by AppNexus API

api,rest
I'm trying to setup an integration with the AppNexus reporting API, ran into problems, and wonder if anyone in the StackOverflow community has some insight to share. The AppNexus API has a walk-though using curl and it sort-of works, except that the groups/dimensions don't get returned. Here's what I did:...

REST API with token based authentication

angularjs,codeigniter,api,rest,token
I want to develop a web site with AngularJS. On the backend side I will use Codeigniter REST framework. I have some security issues and I don't want to start developing without fixing them on my mind. I don't want to use something like api key because it will be...

Responding to an Office 365 event invite via REST

ios,objective-c,api,rest,office365
I'm currently working on adding functionality to allow a user to respond to an Office 365 event invitation (accept/maybe/decline) via their REST API. I'm not entirely sure how developers are supposed to utilize this functionality via the API, however. Google, for example, has a attendeesOmitted flag that you can set...

How to save Facebook private message to database? [on hold]

php,facebook,api,permissions
My question is that is possible save private message from facebook to my database. And if yes, how is it possible? Thank you.

Retrieve access token for Yahoo API using OAuth 2.0 and Python requests

python,api,oauth,python-requests,yahoo-api
I am trying to retrieve the access token for the Yahoo API, using the explicit grant flow as described in this document: https://developer.yahoo.com/oauth2/guide/flows_authcode Everything is fine until Step 4: Exchange authorization code for Access Token I wrote the following python script to retrieve the code: import urllib2 import requests import...

Removing Alert When Using DeleteFile API

vb.net,vba,api,delete
I'm writing a VBA application which involves looping a large number of directories recursively. I am using the FindFirstFile API to to achieve this, as it offers a substantial performance boost over the FileSystemObject. In order to remove the FSO from my code entirely, I need a routine to delete...

Hide referrer header in API request

javascript,api,google-api,cross-domain,referrer
I need to make requests to Google Translate Text-To-Speech API. I have an enabled key but keep getting blocked by No Access-Control-Allow-Origin. I've posted more about it here: Google Translate API - No Access Control Origin with Text to Speech The following sources, http://weston.ruter.net/2009/12/12/google-tts/ and Request to Google Text-To-Speech API...

Idempotent PUT in a concurrent environment

api,rest,http,idempotent
Context I have a REST API where multiple clients (applications) can update the state of a resource with PUT. For the example, this resource is a lamp that you can turn ON or OFF. This resource is also automatically updated by the system when it detects that an electricity failure...

PayPal Developer Account & API ..what happens if account is limited?

api,paypal
I have a hypothetical question about my PayPal developer account. Since the app I developed uses an API Username (myname-facilitator_api1.mydomain.com), API Password and API Signature to do the transactions, I am wondering what happens with the API access if my PayPal account for whatever reason becomes limited? I've had my...

Inbox api use them to tag relevant mails just like inboxsdk.com

python,api,google-inbox
I tried using newly released Inbox api to sort out and tag my mails, but I am stuck at categorising mails after I had successfully logged in using api.

particular single product's price, title and other detail fetch using flipkart api

php,mysql,json,api,base64
I am using clusterdev.flipkart-api and from this api i got flipkart directory name and link then click on it i am getting directory's available products. But i need to fetch particular product's price, title, inStock details from this api. i had try to make some changes but i don't have...

“\x90” from ASCII-8BIT to UTF-8 error rails

ruby-on-rails,ruby,api
I am making an API in a Rails application, but I am having some trouble with the encoding, so it seems. I am actually really unsure on what that actual error is. I have written a module, with two classes in. One of which is used to get some DNS...

Retrieve Data from API using C#

c#,xml,api
I would like to retrieve this data inside of a class in c# based on a URL address "http://sporing.bring.no/sporing.xml?q=TESTPACKAGE-AT-PICKUPPOINT". Unfortunately, you cannot use "XDocument xml = XDocument.Load("");" to retrieve the data because the url address is not a xml file. What sourcecode in C# do I need in order to...

IOS Use Core Data Only in Specific Parts of an app

ios,api,core-data
I'm new to Core Data and trying to use it for persisting objects for offline support in an app communicating with JSON Back-end. I was using NSObjects for my models and now use NSManagedObjects. I only need to save these server objects in a few parts of the app, and...

linkedin company search API multiple facets?

python,api,linkedin
In the new API documentation it's written that to use a facet you add it in the url this way "&facet=location,us:0,fr:0" but it's not written anywhere how to specify multiple facets what I am trying to do is to limit my search results by industry and location these where my...

How to POST - API in thingspeak.comusing urllib in Python

python,api,post,urllib
I am working on a project where I have to get data from a website and then post it to a different website. At the moment I am still new, so I am using a thingspeak.com account to experiment on posting, and I am also following the same example used...

REST api : correctly ask for an action

api,rest,endpoint
I'm currently working on a REST api. I've read a few times how to handle endpoints the right way, using the protocol (post, put, ...) to define which action should be made. Let's say I have a list of quotes. I have : a GET endpoint /quotes that let me...

xmlrpclib error 'module not found' when trying to access gandi api

python,api,python-3.x,xml-rpc
I am trying to set the DS record in the gandi api as describded in the gandi api support doc It states to 'import xmlrpclib' but I immediately get an error 'module not found' (full text reproduced below). I found this page where they use 'from xmlrpc import client', but...

Web API returning null JSON objects C#

json,api,web,large-data-volumes
I have a web API returning 117k JSON objects. Edit: The API is calling MySQL to fetch 117k rows of data, putting them into a IEnumerable and sending them through JSON All I see is [{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},... the entire page... I wanted to ask how someone what is happening and how...

CURL to POSTMAN

api,curl,http-headers,postman
$ curl https://api.blockscore.com/question_sets/536c1532627463780b000000/score \ -u sk_test_n5049aa6053c9a0217bea78070fbf501: \ --header "Accept: application/vnd.blockscore+json;version=4" \ -d 'answers[][question_id]=1' \ -d 'answers[][answer_id]=3' \ -d 'answers[][question_id]=2' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=3' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=4' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=5' \ -d 'answers[][answer_id]=5' how to set this parameters in getpostman? what is...

Reverse GeoCoordinate Class gives Location Not found error

android,api,google-maps,google-maps-api-3,reverse-geocoding
i m using google Reverse Geocoding API in my app, i m succussfully able to get get coordinate using google geolocation API. Now i m trying to get Location Name from Reverse Geocoding API , but always returns Location not found error here is my code: Geocoder geocoder= new Geocoder(MainActivity.this,...

GitHub API returned Url meaning

git,api,url,github,github-api
Take this very simple API as example, https://api.github.com/users/zhuhuihuihui In the JSON formatted response, you'll find something like following, "following_url":"https://api.github.com/users/zhuhuihuihui/following{/other_user}", "gists_url": "https://api.github.com/users/zhuhuihuihui/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhuhuihuihui/starred{/owner}{/repo}", Ok, I know like the following_url, starred_url is something like a sub API which you can call to fetch who that user are following, or what repos...

Rails4: How to connect a rails app to an API database?

ruby-on-rails,json,api,external
Not a question anymore I was given this: GET api/Products?apiKey={apiKey} It returns all of the products available among all shops in an airport in this format(application/json, text/json): [ { "ProductShop": { "AirportName": "sample string 1", "ADCShopCode": "sample string 2", "libShop": "sample string 3", "StorePhoneNumber": "sample string 4", "idPoi": 5,...

Give port number and passed parameters in WSO2

java,api,wso2,wso2-am,api-manager
I am trying to learn WSO2 but have been stuck at a minor step which i believe should be quite easy to do. While creating a new api i need to give the production endpoint. What i want to give is the url along with the port as well. So...

Error message in XML and API with C# Code

c#,xml,api,visual-studio-2013
Based on this code below from previous support: using (WebClient client = new WebClient()) { client.Headers.Add("Accept-Language", " en-US"); client.Headers.Add("Accept", " text/html, application/xhtml+xml, */*"); client.Headers.Add("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"); XDocument xml = XDocument.Parse(client.DownloadString("http://api.arbetsformedlingen.se/af/v0/platsannonser/matchning?lanid=1&kommunid=180&yrkesid=2419&1&antalrader=10000")); } I retrieve a error message...

Link to another resource in a REST API: by its ID, or by its URL?

json,api,rest,api-design,hateoas
I am creating some APIs using apiary, so the language used is JSON. Let's assume I need to represent this resource: { "id" : 9, "name" : "test", "customer_id" : 12, "user_id" : 1, "store_id" : 3, "notes" : "Lorem ipsum example long text" } Is it correct to refer...

Difficulty accessing Docker's API

linux,api,docker,firewall
I was struggling to get connected to the Docker API running on a RedHat 7.1 VM, the docker API is running on both a TCP port and a UNIX socket. To configure this I set -H OPTIONS as follows: OPTIONS='--selinux-enabled -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock' in the file: /etc/sysconfig/docker Running the...

Jax-RS overloading methods/paths order of execution

regex,api,rest,jax-rs
I am writing an API for my app, and I am confused about how Jax-RS deals with certain scenarios For example, I define two paths: @Path("user/{name : [a-zA-Z]+}") and @Path("user/me") The first path that I specified clearly encompasses the second path since the regular expression includes all letters a-z. However,...

Syntax Code to Retrieve Data from API to Class do not working properly

c#,xml,api,visual-studio-2013
I cannot retrieve the value of annonsid, annonsrubic etc from the API into the class annons. I don't know what part or syntax I'm missing. private static List<annons> myListAnnons = new List<annons>(); private static annons _myAnnons = new annons(); using (WebClient client = new WebClient()) { client.Headers.Add("Accept-Language", " en-US"); client.Headers.Add("Accept",...

Deployment of Python API

django,api,nginx,deployment,uwsgi
I'm trying to understand the simplest way to deploy a Django application in production. Many recommend nginx or Apache along with uwsgi or gunicorn. I think that is more than my situation requires, and I would like know if my thinking is correct. This application is nothing more than an...

Dismiss Windows Phone alarm

api,windows-phone,alarm,dismiss
Is there an API for the regular alarm/reminder that can be used to dismiss it programatically? I have tried looking in the MSDN library for a code sample, but didn't have luck.

Use higher API level in android with an external library

java,android,api,android-studio,material-design
Would it be possible to import an external library (.jar file) in an android project containing the features of API level 21, and then use them in my application with a minimum sdk version set to say like 17? I'm really into Matierial Design but as Google states, "To use...

Ruby on Rails posting to an API using javascript via a proxy

javascript,ruby-on-rails,ruby,xml,api
I'm very new to Ruby on Rails and I'm hoping this will be a quick fix. I have a very simple form (firstname, surname, email) that needs to post XML to an API on another domain. Everything on our site is clientside javascript so I would like to post to...

REST-API Different Content-Type on Error Response

java,json,api,rest,spring-mvc
Since some weeks I'm working on an rest api using spring-mvc. The REST-API is working properly and I`m almost done until one last problem when it comes to error handling with specific error-objects. The REST-API is using JSON as format to serialize Java-Objects. When an error occurs during service-execution an...

Apache Nutch REST api

api,rest,web-crawler,nutch
I'm trying to launch a crawl via the rest api. A crawl starts with injecting urls. Using a chrome developer tool "Advanced Rest Client" I'm trying to build this POST payload up but the response I get is a 400 Bad Request. POST - http://localhost:8081/job/create Payload { "crawl-id":"crawl-01", "type":"INJECT", "config-id":"default",...

Rails 4 best practice for API

json,api,ruby-on-rails-4
I'm building an API onto a web app, and I have a few questions on how it should be set up. Certain records cannot be created through the web app itself, but the API can have full control of not only creating, but other web-app functionality as well. Let's say...

Ruby API Call Page Issue

ruby-on-rails,ruby,json,api,httparty
This might be a basic issue but very common so it might be helpful to other people in the future. I use HTTParty to make a get request to an API, which returns some information, something like this: { datapath: "blah-blah.blah.blah", success: true, info: { row_limit: 500, total_results: 2700, total_pages:...

Verify youtube api v3 video exists JS

api,video,youtube,exists
I used the v3 API to check if a youtube video exists, however, I am not able to fetch the return data. I assume I need the "pageInfo": { "totalResults": 1, "resultsPerPage": 1 }, to check it. But how to get this information using the following code? var data =...

How to make the Twitter API returns me over 800 tweets

api,twitter,timeline,tweets,home
How to make the Twitter API (home_timeline) returns me over 800 tweets? For example applications like tweetbot how do it to have more updates in the 3000 home timeline? I think that using a cache system but which one?

What is the best practice for sending password from frontend to API server?

javascript,ruby-on-rails,api,rest,authentication
I am implementing a web application composed by a Javascript front end (single page application if you prefer), and a Rails backend. The front end app make request through API to the server, I want to know what is the best practice for sending the password on the login or...

Is there any way to find out when an album got added to spotify with the web api?

javascript,api,web,timestamp,spotify
My usecase is to present the latest added album of an artist (regardless of releasedate). I use the https://api.spotify.com/v1/artists/[artistId]/albums to get the albums but I can't find any information about how the response is ordered. Is it random or actually sorted by the date the album got added to spotify?...

XMLHttprequest not working the twitch.tv api

javascript,api,xmlhttprequest,twitch
So I've been trying to access the twitch.tv api but every time i go to make a request i keep on getting the error: "XMLHttpRequest cannot load https://api.twitch.tv/kraken/streams/normalice. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access." I'm currently using the live-server package...

How to real-time monitor the emails?

api,google-apps-script,gmail,quota
Good day! I want to offer the implementation of google apps to my company. Also we have a need to reply on messages, that we recieve through our web-site in 10 minutes time limit. For this purpose our big team of sales managers a handling emails when they have a...

Django update without required fields

django,api,rest,django-rest-framework
I'm trying to execute an update through my API. When I push an update, I do not have all the required fields, because I'm only trying to update the ones that have changed. I get a 400 "This field is required." error. I know the field is required, but I'm...

Instagram API Comments Created using Python (ERROR: AttributeError)

python,api,python-2.7,instagram,instagram-api
Hello I trying out Instagram API using python and I am new to it. Hope you guys could take a look at it & help me out. I am wondering how to collect the date & time from users that have commented for each media id. I have tried using...

How to know if Linkedin user is admin of his company on LinkedIn?

api,linkedin,linkedin-api
I'm building a website using the LinkedIn Oauth api so that my visitors can log in using Linkedin. This works perfectly fine, but I now want to give people that are administrator for a company registered with Linkedin. When people log in I can get different fields of info about...

How to follow DRY principles in different namespaces Rails 4.2?

ruby-on-rails,api,ruby-on-rails-4,namespaces
Basically I've developed an app which has two namespaces: admin, api and the public one (simply resources :users for instance). All works fine, however I'm repeating myself quite a bit as some of the controllers in api for instance could easily be used in admin. How can I DRY my...

Short url site API

php,wordpress,api
I have wordpress blog and I want to short all urls by this url shortner: http://smart-gpt.com/short/api.html And this is api code API Address: http://smart-gpt.com GET /short/api/v1/9f55f513858401acfd7d4a582715dd3c/shorturl/create/url/BASE64_ENCODED_LONG_URL.json Please help me!...

LinkedIn Group API changes

api,rest,group,linkedin
As far as I can tell, with the new changes to the API's, LinkedIn's Group api's are no longer public at all. Are there any ways to access the posts made in a group without using the Group api? All I'm looking to do is to read the posts from...

Unique Entity Error message

api,symfony2,exception-handling,doctrine
I have a user entity which have some unique fields. The code bellow shows you how I defined it. /** * @UniqueEntity(fields={"login"}, message="UNIQUE ERROR MESSAGE") */ ...... /** * @var string * * @ORM\Column(name="login", type="string", length=255, unique=true) */ private $login; Developping an API, I would like to be able to...

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)

python,api,utf-8
i have taken this code from https://github.com/davidadamojr/TextRank and i am facing this problem. i tried to solve by placing utf-8 in "keyphrases = decode('utf-8').extractKeyphrases(text)" but failed. here is the code: """ From this paper: http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf External dependencies: nltk, numpy, networkx Based on https://gist.github.com/voidfiles/1646117 """ import nltk import itertools from operator...

C# code to retrieve xml data

c#,xml,api,visual-studio-2013
Based on the this sourcecode I'm not able to retrieve the data from the API into XDocument. I retrieve the error message {"The remote server returned an error: (400) Bad Request."} Question: I don't know what to do? XDocument xml = XDocument.Parse(new WebClient().DownloadString("http://api.arbetsformedlingen.se/af/v0/platsannonser/matchning?lanid=1&kommunid=180&yrkesid=2419&1&antalrader=10000")); ...

Getting a php array

php,api,curl
I need to interpret the array received from a remote licensing. I am calling the remote api via curl and the answer in the browser is: The parsed answer from curl done by using: parse_str(curl_exec($ch), $parsed); print_r($parsed); is exactly as here: Array ( [{"success":true,"uses":154,"purchase":{"id":"GYFt6sW7hbURSVdSpipb5g] => =","created_at":"2015-06-06T16:44:41Z","email":"[email protected]","full_name":"daniel","variants":"","custom_fields":[],"product_name":"Direkt...

Ambari Monitoring raw data

api,data,monitoring,ambari
For my masters project, I'm looking for a convenient way to grasp the monitoring data Ambari collects. To be precise, I'm interested in the raw data (can be csv, xml, json, you name it) of the charts Ambari shows in the dashboard, i.e., Cluster CPU, Disk Usage, network usage and...

Why does grep give “Binary file (standard input) matches”?

c,file,api,io,pipe
#include <stdio.h> int main() { FILE* cmd = popen("grep Hello", "w"); fwrite("Hello\n", 6, 6, cmd); fwrite("Hillo\n", 6, 6, cmd); fwrite("Hello\n", 6, 6, cmd); pclose(cmd); } The program above outputs: Binary file (standard input) matches Why does grep give the message, and how to fix it?...

Basic Auth to Receive Token in Spring Security

api,rest,spring-security,jwt
I am implementing a RESTful API where the user must authenticate. I want the user to POST their credentials in order to receive a JSON web token (JWT), which is then used for the remainder of the session. I have not found any good sources of information to set this...

How to compare voice command input by user to hard coded strings

java,android,api,voice
I am currently working on an app that takes user input by voice command. The program recognizes the words using the google api. I want to be able to compare the user voice input to hard coded strings. My problem is that I do not know how to code this...

HttpResponseMessage.Content as an attachment for an email

asp.net-mvc,api,httpresponse,email-attachments
I need some help, really urgent. I have an API that returns an '.xls' file, using HttpResponseMessage. What I am trying to do is to get that file and attach it to an email that I am sending. Could anyone help me with this? Please keep in mind that I...

Youtube api v3 duration

javascript,jquery,json,api,youtube
I have problem getting duration from json. I defined item.contentDetails.duration but doesn't work every time (Error says undefined). I don't know what is bad. FIDDLE ...

Swift ios alamofire data returning empty first time in viewDidLoad

ios,swift,api,model-view-controller,alamofire
I am trying to load data from an API into my viewcontroller but the first time it loads the data returns empty import UIKit class AdViewController: UIViewController { var adId: Int! var adInfo: JSON! = [] override func viewDidLoad() { super.viewDidLoad() loadAdInfo(String(adId),page: 1) println(adInfo) // This shows up as empty...

Is twitter streaming api exactly 1 percent of the whole streaming?

api,twitter,streaming,tweepy
I am using tweepy package to crawl tweets. Just wonder whether the tweets I get are exactly 1 percent of all the tweets in the streaming? Anybody know that? Thanks in advance....

Using Graph API Explorer gets friends list but my own app doesn't . (Graph API Explorer token v.s App Token)

facebook,api,facebook-graph-api
I am trying to get my friends list in my app. If I use the access token in my Graph API Explorer console and hit the url. https://graph.facebook.com/v2.3/me?access_token='GraphAPIToken'. I am able to get the complete friends list. If I try using the SDK or any library like fbgraph for nodejs...

How to Get Data From Qualtrics

javascript,ajax,api,qualtrics
Hey I am creating a webapplication that process answers from a Qualtrics survey that I created. Is there a way (such as AJAX request) that automatically get the answers from my Qualtrics form through javascript? Thanks!

How to get Office 365 service location via API

api,cloud,office365
I am trying to find the region of an Office 365 service. Microsoft's Office 365 documentation states that the data storage regions are disclosed to the customer. Is it possible to find a service's region via an API request? I've been looking through documentation on the Service Communications API, the...

Get all videos from a playlist (Youtube API v3)

xml,api,video,youtube,playlists
I'd like to use the new youtube API to retrieve a list of all the videos (their ID's and titles) from a specific playlist. I need the id's separated so that I can make a "video gallery" using php on my website, instead of only one video with the playlist...

Could someone bring Google OAuth2 for Cloud DNS via Rest to light?

c#,api,rest,google-app-engine,dns
Infinite Loop Error. I have been spending way too much time going in circles in Googles really terrible API documentation regarding implementation of their cloud services in a desktop application. First major problem, it seems that I must use Oauth2 somehow in order to obtain additional client credentials (which I...

Google Webmaster API - Mark crawlerros as fixed

api,http-status-code-403,google-webmaster-tools,google-crawlers
While marking the crawl-errors as fixed via the API, I got an 403 error „Insufficient Permission“. If I only read the erros via the api, I got no errors. I’m the owner of the site and I logged with my google webmaster credentials. I've created the API creditals with the...

Office 365 Rest API Access to public folders

api,office365,outlook-restapi
How do I access public folders using the office 365 REST API (or the .net client api)? I can quite happily work my through my folders but I can't figure out how to get a list of public folders (and access their contents). As a plan B I can see...

Authenticating mobile app login using webservice using oauth connection

php,android,api,authentication,oauth
I have developed a website in PHP ( zend framework 2 ). It has user authentication to access user specific content and views which is only accessed by the user. Now I want to create a mobile app which has same functionailty as this. So I created a web service...

How to get each track of a playlist with the Soundcloud API?

javascript,api,stream,soundcloud
I am working with the Soundcloud API to create a custom playlist (another look than the original Soundcloud player). See image below. I am develop a website for an artist. With the API of Soundcloud I want to import his music from Soundcloud to the website. There are different tabs...

How to hide API keys in GitHub for iOS (SWIFT) projects?

ios,swift,api,parsing,apple-watch
Hello I'm trying to publish a iOS (SWIFT) personal project in GitHub but I'm afraid of sharing my private API keys and secrets with everybody. I'm using parse so I have in my AppDelegate something like this: let applicationId = "mySecretApplicationId" let clientKey = "mySecretClientKey" Parse.setApplicationId(applicationId!, clientKey: clientKey!) I would...

shuting down an OS without using API's

c,api,operating-system,shutdown
i was trying to add a shutdown feature to my home-made OS , but i don't really have such API yet . i was wondering how does the OS's terminates the power ? i'd be appreciate it if somebody could give me some guidelines for start .

REST API design for cloning a resource

api,rest,post,yaml,webdav
I am writing a YAML document using swagger to design a RESTful API method for cloning a resource. I have a few options and don't know which would be best. Please can someone advise? Options: Relinquishing the responsibility of cloning the resource object to the consumer (where the consumer assigns...

API Integration

xml,api,curl
Im new here and Im not a programmer but learning along the way. I have come up against a problem but in your explanation (if any - thanks) dont presume that I know. Hope you can help me solve this. Here are the details: Im trying to integrate Interpire EmailMarketer...

CORS, Client vs. Server & Rails API GET Request

ruby-on-rails,ruby,api,curl,client
I've built a GET Rails API that checks for an access token and that the registered request.env["HTTP_X_REAL_IP"] matches the IP address that is registered within the admin panel of the app. Example request: https://staging.mysite.com/api/v1/products?access_token=7b9f3cddd3914a6f45fa692997fe6dc9 The API works great when I'm making requests from a server by curling the request or...

New workbook opened by external app cause macro to stop

excel,vba,api,excel-vba
I use an application at work to make search on my company database. The application exports search results to an excel file in the “AppData\Local\Temp\” folder. I need this excel file for my main macro to work. Normally I click the buttons in the application manually to make the search,...

Using Python's Requests library, cannot get API call to properly format

python,json,api,rest,python-requests
For reference, I'm a novice trying to learn Python and working with British Airway's Flight Offer Basic API, who's documentation can be found here: https://developer.ba.com/docs/api/Flight_Offer_Basic Using the Requests library documentation from docs.python-requests, I'm trying to build a matching API call that actually works, but I'm getting a 403 when not...

how to put a location name programmatically in Google JS autocomplete API and get the results?

javascript,api,autocomplete
When searching for Edinburgh napier university using google autocomplete API, I don't get the state and city, which should be scotland and edinburgh. I want that if the result doesn't include city and state, it takes the postal town name (which in our case is edinbrugh) and search for the...

Profile/account REST API naming convention

php,web-services,api,rest,http
I have tried to search the net, but haven't found any example of best practice url naming convention for the following requests. My API allows user to log into the system, retrieve secure token which can be used to access private data over the HTTPS. So there following features will...

Sending messages from the application to twitter in certain conditions

ios,objective-c,api,twitter
Can application send a message in twitter without user intervention under certain conditions? For example when charging the battery less 10%? please, sorry for bad english!

Spotify Web API - Client Credentials - Accessing a users playlists

php,api,oauth,spotify
I'm trying to access users playlist tracks by using the client credentials flow. Spotify getting playlist documentation: https://developer.spotify.com/web-api/get-playlists-tracks/ Spotify getting client credentials documentation: https://developer.spotify.com/web-api/authorization-guide/ First question, is it possible to get a users playlist tracks using client credentials flow? I'm using this flow since I'm unable to pop up a...

PHPUnit: Testing RestFul API with die response

php,json,api,zend-framework2,phpunit
I am trying to PHPUnit test an action in my ZF2 project. The APIs return a JSON string using die($jsonObject). This causes the PHPUnit test to stop processing and just die a JSON response. public function testStartupAction() { $this->dispatch('/api/v3/startup', "POST", array()); $this->assertJson('{"status":false,"message":"Please enter the UID","data":null}'); } assetJson method is never...

Angular JS Sending Array data with $resource to .NET API

.net,angularjs,api,angular-resource
Yes, I know there is a gazillion posts about sending array data using angular $esource. I read this, this, and pretty much the top 10 google results on this topic, but I still can't make it work. I suspect that it might have to do with the server side API,...

square connect api batch processing

api,batch-processing,square,square-connect
I need assistance with batch processing, especially in adding tax codes to items. I'm experimenting with the square batch processing feature and my sample cases are create 2 items and add the tax code to them. In all 4 requests - 2 for creating item, 2 to 'put' the tax...

Creating a Ruby API

ruby,api,sinatra
I have been tasked with creating a Ruby API that retrieves youtube URL's. However, I am not sure of the proper way to create an 'API'... I did the following code below as a Sinatra server that serves up JSON, but what exactly would be the definition of an API...

GoogleCloudMessaging - InstanceID.getInstance(), registering from client

java,android,api,cloud,messaging
I'm pretty new to programming in Java and generally programming. Right now I decided to make my own app that is supposed to utilize Google Cloud Messaging. And somehow I succeeded but then I realized I used method String regid = gcm.register(PROJECT_NUMBER); that is deprecated and I should now use...

Return value -Java API design VS. C API

java,api
I used C a lot before and now use Java. I have a question of API design in JAVA. In C, I always use int as a meaningful return value, and put multiple objects(some of which will be changed) in arguments. e.g, int foo(int x, int y, int *result) {...

Blockchain receive API with same address

api,bitcoin,blockchain
I need to accept bitcoins on my website (PHP). I'm using blockchain and i have read the api: https://blockchain.info/api/api_receive Is quite simple but i have some questions, but first i will try to explain what i need. Client send bitcoins to my wallet (Any amount they want) Server will be...

Android rgb color api [duplicate]

android,api
This question already has an answer here: How to get RGB value from hexadecimal color code in java 5 answers http://www.colorschemer.com/online.html in the left side of above url one box is there which displays color and below to that R G B input fields are there on filling a...

Delay between api calls Nodejs

javascript,node.js,api,express
I'm using Nodejs to implement a web app. I'm having a list of objects and I want to call a 3rd party API for each of these objects. The problem is the api has rate limit so based on my calculation I have to call the api every 1.5 sec....

Filtering / subrequest to get results

python,api,eve
Mongodb db.entity.find() { "_id" : ObjectId("5563a4c5567b3104c9ad2951"), "section" : "section1", "chapter" : "chapter1", ... }, { "_id" : ObjectId("5563a4c5567b3104c9ad2951"), "section" : "section1", "chapter" : "chapter2", ... },.... In my database, the collections entity contain mainly section and chapter. Only chapter values are unique and when we query mongo for a...

Securing Symfony RESTful API consumed by angular front?

angularjs,api,symfony2,oauth,wsse
I have set up a Symfony based API which is being used by an Angular front end which is totally dependent of it (User registration included) I have read multiple threads recommending using WSSE or FOSOAuthServerBundle but I'm not sure about the best method ? If I understood correctly, WSSE...

PHP Json Decode code not working dailymotion

php,json,api
I'm using php to decode dailymotion api for related videos but my code is not working.. If i replace "list" with any other word it works perfectly.. But i have to use the word list due to dailymotion api.. Anyone who can help? $string='{"list":[ { "duration": 233, "id": "x2laq9v", "thumbnail_480_url":...

Are the Facebook API Key and App Secret the same thing?

wordpress,facebook,api,facebook-graph-api,facebook-apps
I am using a WordPress theme which requires entering an Facebook API key in order to enable comments. I created a new Facebook app, but all it's showing me is an App ID, API version, and an "app secret." Do I need to enter the app secret in place of...