Tagged Questions
0
votes
0answers
7 views
google cloud endpoints discrepancy between documentation, and what works in my app
The documentation states you should load your api from javascript like this:
var ROOT = 'https://your_app_id.appspot.com/_ah/api';
gapi.client.load('your_app_id', 'v1', function() {
...
0
votes
1answer
32 views
Flattening an array in Flask API
I'm making an API with flask that takes as a POST message body a nested array, and then returns a list of the values. An example would be curl …. –d ”(([[1, [], [2, 3]], [[4]], 5])” would return ...
0
votes
1answer
26 views
live updating google maps for real time data in python
So I have a very large amount of GPS data with latitude and longitude over time and I need to create a live updating movie to show the motion of the patients in real time
I need an API for python (I ...
-2
votes
2answers
29 views
Cousera Data Science python/twitter: analyzing tweets with sentiment file returns error for non-english words [closed]
I'm in a data science course module in coursera and I'm a horrible novice at coding. This assignment is to write a script that uses a sentiment file and a printout of the twitter API. The sentiment ...
1
vote
1answer
35 views
Google app engine e Prediction api!! error
I use windows 8, python 2.7, and google app engine launcher, I was doing the exercise at the following link: ...
0
votes
0answers
9 views
Add comments to Reviewboard with Python API
I've been trying to use the Reviewboard Python API, to create a review + comments on an existing review request.
Unfortunately I'm having difficulty figuring out the API.
I've tried the following:
...
0
votes
2answers
43 views
create an button on desktop
I've collected many nice wall papers over years.
I know python and c++ (a little MFC eperience).
I want to make a programme that can change my wallpapers.
I want to operate like this:
there is ...
0
votes
1answer
17 views
Httplib2 : Processing Response String
import httplib2
h = httplib2.Http(".cache")
resp, content = h.request("http://example.org/", "GET")
When I follow the examples in urllib2 to make a GET request to an API, how do I deserialize the ...
0
votes
1answer
27 views
How to read javascript values from python with PyV8
I've implemented PyV8 into Python. I have an example javascript file that looks like this:
main-js.js:
var numOne = 1+2;
var numTwo = 3+1;
var numThree = 5;
How do I read each variable into Python ...
-1
votes
0answers
21 views
perforce api - select a file in depot view
I'm writing a plugin for perforce (P4V) in python. (something like 'select related file')
I want to select that file in the depot view. I got everything working except the selecting part.
So how do ...
0
votes
1answer
43 views
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I am getting error Expecting value: line 1 column 1 (char 0) when trying to decode JSON.
The URL I use for the API call works fine in the browser, but gives this error when done through a curl ...
0
votes
1answer
13 views
how to delete tastypie model resource index
I'm implementing a rest api using django-tastypie. My api resource is defined as follows:
class AddressResource(ModelResource):
class Meta:
resource_name = 'address'
queryset = ...
2
votes
1answer
57 views
How to put a textfile into sqlite simply using Python API?
I have a tab delimited file in the format:
sentenceID (sid) documentID (scid) sentenceText (sent)
E.g.
100004 100 即便您喜爱流连酒吧,也定然在这轻松安闲的一隅,来一场甜蜜沉醉的约会。
100005 100 您可以慢慢探究菜单上所有的秘密惊喜。
I want ...
1
vote
1answer
28 views
Authenticating Developers with APIKey and Users with BasicAuth/OAuth
I've looked around for this but can't seem to find a canonical answer. I'm trying to follow best practices. Maybe I'm thinking of it the wrong way.
I'm thinking of my API users as two different ...
0
votes
2answers
67 views
How can I access API data (Python, Requests) in specific cells of my HTML table?
I've searched stackoverflow for hours and still can't find an answer so I would greatly appreciate your help! I'm building a metrics dashboard using an API and am stuck...
I'm using the requests ...
0
votes
1answer
40 views
Review Board Python Web API
I'm new with using third-party APIs, and I was trying to get the Review Board Web API to work in python.
However, I was confused about 3 things:
from rbtools.api.client import RBClient
client = ...
0
votes
0answers
26 views
shopify app (python)Uncaught ReferenceError: require is not defined
with the Shopify API for python
i am able to place the script tag in the (client's) store .
Problem is i am having two script tags among one is a Require.js.
store page's source code (client's ...
0
votes
1answer
32 views
how to make this call from shopify ? (GET/POST) python
I have to make this call with Standard shopify API (python)
https://store.myshopify.com/admin/shop.json
what i am getting is :
ipdb> shopify.Shop.current()
shop(2330215)
but :
ipdb> ...
0
votes
0answers
23 views
Google API SSL error using customsearch from Python3
I am unable to query google from Python3 client in Windows.
Here is the script
import urllib.request, urllib.parse, urllib.error, re, os, sys
import json
searchterm="hello"
prefix = ...
0
votes
0answers
22 views
Get TimesNewswire API, HTTP Error 404:
I am getting data from TimesNewswire API and I am using the tool
http://prototype.nytimes.com/gst/apitool/index.html
For example, I search a specific news item and type in the url:
...
0
votes
0answers
26 views
shopify script tag not functional on store
following the proper auth from the standard api calls .
after making the complete authentication
shortname= shopify.Shop.site
shortname=shortname[8:-20]
...
1
vote
1answer
57 views
NYtimes API, python
Hi I want to get all the information after 'title' from NYtimes API, here is my code
from urllib2 import urlopen
from json import loads
import codecs
import time
def call_the_articles():
url = ...
0
votes
0answers
45 views
Using Flash for website… won't allow access to outside sources… how to build api?
Like a complete idiot, I've spent the past month developing a flash based website. Everything was fine and dandy until I realized that when I publish the document.. it does not function at all. My ...
0
votes
2answers
45 views
shopify getting store name to build post url (python)
I am building a Shopify plugin .
(Placing a widget in store with SCRIPT_TAG)
with following the standard APIs given
I have achieved the auth2 setup.
now as the shop owner installs it .
it need to ...
0
votes
3answers
133 views
Google AppEngine images API suddenly corrupting images
We have been using AppEngine's images API with no problem for the past year. Suddenly in the last week or so the images API seems to be corrupting the image. We use the images API to do a few ...
-1
votes
1answer
51 views
Open source API suggestion [closed]
Is there any open source API that allows you to request a query of keyword and
receive a closest matching keyword PLUS the category that it belongs to?
For example: I query "Star"
I want to receive ...
0
votes
0answers
35 views
Django-Tastypie Return Multiple Object Types In A ModelResource Response
I'm trying to return multiple object types in a response. Specifically I would like to return the query that produced these results to the client. This is especially useful in say mobile applications, ...
0
votes
1answer
28 views
Can I detect whether a submission is a self post using praw?
Is it possible to detect whether a user's submission on reddit is either a self-post or a link to an external URL?
I want to exclude all self-posts but can seem to find anything in praws ...
0
votes
2answers
44 views
Accessing API using Python
I was trying to retrieve data from an API and i was receiving
'set' object has no attribute 'items'
This is my api.py and i have import it to my views
import json
import urllib
import urllib2
...
0
votes
0answers
23 views
YouTube Analytics API: Issue with filters “Could not parse content (N/A) of field parameters.filters”
I am running into an issue with the YouTube Analytics API v3. I am trying to get a traffic source detail report for traffic from related videos for a video on my channel. I'm doing this with the ...
1
vote
1answer
25 views
Infoblox WAPI: how to search for an IP
Our network team uses InfoBlox to store information about IP ranges (Location, Country, etc.)
There is an API available but Infoblox's documentation and examples are not very practical.
I would like ...
0
votes
1answer
29 views
How to access nested rest api objects via URL
I have a REST webservice which returns the following output while accessing json REST url "http://example.com/api/v2.0/deliverable/?numb=339&limit=1&order_by=-id&format=json";
Backend is ...
0
votes
2answers
89 views
Using the twitter API and Python to obatain retweeter's id
I have an issue that has been bothering for a while now, and which I have tried really hard to fix but have found no solution.
So I'm doing an internship doing research on complex networks, nothing ...
0
votes
1answer
45 views
Facebook API Data Import into Python then formatting in csv
First of all, I want to emphasize that I'm a total novice to python and api (well programming in general).
I'm trying to come up with ways to automatically process inputs of facebook userids in csv ...
0
votes
1answer
39 views
OAuth service and official client support
I'm trying to understand OAuth, and I'm having a hard time figuring this basic thing out...
I have developed a service (with Python and Flask), which supports classic authentification through a ...
1
vote
1answer
47 views
Python PRAW Wrapper, Logic Problems
What I'm aiming to do is to get the top submission from Reddit, append it to an array and then get the second top submission, third, fourth, etc. I'm using place_holder to get the next submission, ...
0
votes
1answer
55 views
How to send GET request including headers using python
I'm trying to build a website using web.py, which is able to search the mobile.de database (mobile.de is a German car sales website). For this I need to use the mobile.de API and make a GET request to ...
0
votes
1answer
27 views
Rauth Library Changes - Python
I'm having a hard time with the changes made to the Rauth library and I was wondering of anybody could help.
First I create a Rauth wrapper as such (this is merely an example, not my actual code):
...
0
votes
2answers
54 views
Google Adwords API authentication issue
Just getting started on the Adwords API, for some reason I can't seem to connect at all.
The code below, straight from the tutorial throws the error:
Traceback (most recent call last):
File ...
0
votes
0answers
15 views
CreateSend API Timeout on Campaign Create
I have been using the code below to create a campaign through CreateSend API with the Python Lib inside a Django app.
I am randomly getting timeout exceptions. The campaign does get created but ...
-2
votes
1answer
60 views
twitter users with more than 1 million followers
How to find the twitter IDs of twitter users with more than 1 million followers? I am using python.
I tried using the streaming API of twitter and put a filter on tweets where the users had more than ...
0
votes
0answers
19 views
scraperwiki api to convert html source code to xml file
Is there any api which converts the html source code of any given url and returns the url of that xml file.
for example wikipedia has an api for that work
suppose the url is ...
0
votes
1answer
47 views
Iterating based on list of strings in Python
With a list of YouTube videoIDs in a text file, the code below aims to loop through these while getting the comment feeds from all these videos. Could anyone spot the looping error(s) I must have ...
0
votes
2answers
31 views
Json output with none, one or many dictionaries in a tubple - best way to manipulate? (Bitstamp transaction list)
Hy, still a python beginner, I am looking for help pointing me in the right direction:
I am trying to build sort of a database of api answers from bitstamp listing the transactions on bitstamp.
The ...
-1
votes
0answers
34 views
Google Books API python client seems does not work at all
I am trying to access Google Books API through Python. After getting access_code, getting The "authorization token" is not working at all. The code is like this...
class ...
0
votes
1answer
14 views
CiteULike API 'forbidden'
I am trying to query counts of bookmarks for research papers in CiteULike. I am using the "http://www.citeulike.org/api/posts/for/doi/" URL in order to put in a request (using urllib2 library for ...
1
vote
1answer
54 views
SHA512 client handshake implementation
I'm attempting to make an hmac implementation that interacts with a server api and the only example I have to go off of is a python snippet. Unfortunately I've never touched python and my Java is a ...
0
votes
0answers
30 views
python youtube api upload on user behalf
I have a situation where I would do the following
user uploads a video
I will re-encode the file to MP4
I need to share it to Youtube after re-encoding.
I was able to setup OAuth URL and get the ...
0
votes
0answers
44 views
Add google charts to django app
I'm trying to create django webpage that would show dividend(amount, date) in graph. I've decided I wanna try google chart. But I am not sure what to use, javascript or python wrapper? What's better? ...
0
votes
0answers
59 views
Accessing tracks of followings on Soundcloud
I am a Python / Django newbie and I'm trying to pull through the tracks of users I am following. I got the code up and running in straight Python but tried to translate it into Django and it returns ...