Questions tagged [urlfetch]

Use in addition to tags Google App Engine / Google Apps Script. Urlfetch is a built-in library that is used to fetch external URLs. Unlike other data fetching modules/libraries, data is fetched synchronously blocking until the result is returned.

Urlfetch is a built-in library that is used in Google products such as Google Apps Script or Google App Engine to fetch external URLs. Unlike other data fetching modules/libraries, data is fetched synchronously blocking until the result is returned.


Useful links

  1. UrlFetchApp class reference;
  2. HTTPResponse class reference;
  3. OAuthConfig class migration reference;
  4. Request origin pool of IP addresses;
  5. urlfetch module for Python 2 App Engine API reference.

Related tags

826 questions
6
votes
1 answer

How to add an API Key to a UrlFetchApp in Google Apps Scripts

Solved Thanks to Dimu Designs for helping out. The following works. function myFunction() { var url = "https://api.fortnitetracker.com/v1/profile/pc/Ninja"; var apiKey = "xxx-xxx-xxx"; var res = UrlFetchApp.fetch( url, { …
6
votes
2 answers

Sending multiple POST data items with the same name, using AppEngine

I try to send POST data to a server using urlfetch in AppEngine. Some of these POST-data items has the same name, but with different values. form_fields = { "data": "foo", "data": "bar" } form_data = urllib.urlencode(form_fields) result =…
nip3o
  • 3,346
  • 4
  • 24
  • 29
6
votes
1 answer

Removing header (User-agent) from make_fetch_call while requesting from GAE

I have an application of Google App Engine(GAE) and I am using Python 2.7. This application receives an GET(ajax) request from user portal(say Chrome). Upon receiving the request, I prepare Asynchronous connections for requesting data from multiple…
6
votes
1 answer

Why UrlFetchApp fails to be called in an onOpen trigger?

I am trying to make an HTTP POST request when Google Spreadsheet loads. I have gotten my HTTP POST request working as a function in a menu dropdown but I can't get it to work with onOpen or onInstall. Here is the code: function onOpen(){ …
NicoM
  • 629
  • 2
  • 6
  • 22
6
votes
4 answers

How to local test gae golang urlfetch through proxy?

My urlfetch client works fine when deployed to appspot. But local testing (dev_appserver.py) through proxy has issue. I can't find any way to set proxy for urlfetch.Transport. How do you test urlfetch behind proxy locally?
GQ77
  • 61
  • 1
  • 2
5
votes
3 answers

Fetch Data form External URL clientside

I want to fetch data like (title,some description) from any external URL the user enters. Like in facebook, when we copy an external url , it fetches some information from that url.. Is there any way to do it clientside by some jquery plugin or…
Rahul garg
  • 9,202
  • 5
  • 34
  • 67
5
votes
1 answer

Clickup get tasks by status in list

I want to retrieve tasks in a specified status from a list in Clickup but I keep getting an empty response. Resources - https://jsapi.apiary.io/apis/clickup20/reference/0/tasks/get-tasks.html In the api documentation, it says you can query by status…
jdavis
  • 429
  • 6
  • 16
5
votes
2 answers

How to assign UrlFetchApp with basic authorization to button?

I created function in Google Apps Script, that works well when I run it in Google Apps Script. Output data returns to Google Sheets. function testFunction11() { var rng = SpreadsheetApp.getActiveRange(); var encodedAuthInformation =…
5
votes
4 answers

How to declare a timeout using urllib2 on Google App Engine?

I'm aware that urllib2 is available on Google App Engine as a wrapper of Urlfetch and, as you know, Universal Feedparser uses urllib2. Do you know any method to set a timeout on urllib2? Is the timeout parameter on urllib2 been ported on Google App…
systempuntoout
  • 71,966
  • 47
  • 171
  • 241
5
votes
2 answers

Is there a limit on the number of asynchronous urlfetch calls I can run simultaneously?

I noticed what appears to be a limit on simultaneous asynchronous calls of urlfetch in the Java implementation (as noted here: http://code.google.com/appengine/docs/java/urlfetch/overview.html) but not in the python…
ryan
  • 2,311
  • 3
  • 22
  • 28
5
votes
2 answers

How to convert a Google Sheets-File to an Excel-File (XLSX)

The image shows the code who is updated. The var "xlsFile" is undefined, why? How can I convert the Google Sheets file to an Excel file with (Google Sheets) Script Editor function googleOAuth_ (name, scope) { var oAuthConfig =…
5
votes
1 answer

Google App Engine - Error uploading file to blobstore from Python code

I am working on an app to process emails hitting my mailbox. I have modified my mail settings to forward incoming mails to myapp. The mails reaching myapp will be routed to the handler script ("handle_incoming_email.py") where it will be processed.…
Jithu Bhai
  • 95
  • 1
  • 9
5
votes
1 answer

Unable to connect to external services from App Engine development server with urlfetch or urllib2

The following code works in the Python interactive shell: import urllib2 result = urllib2.urlopen("http://www.google.com/") and gives a 200 result. If I run the same code in an AppEngine app running locally with the development server, it fails…
Hugo Rodger-Brown
  • 11,054
  • 11
  • 52
  • 78
5
votes
1 answer

Determining the IP address of the node that executes the UrlFetchApp call

For a Web API call via UrlFetchApp in a Google Apps Script I have to submit the HTTP client IP (via HTTP-GET) for authentification (namecheap.com API). Is there a way to determine the IP address of the node that will execute the UrlFetchApp call for…
chromanoid
  • 545
  • 3
  • 14
4
votes
1 answer

URL fetch request size in googleaapengine

I am doing a web application project using GWT in Eclipse. I have a file on the client side which is to send on the project.server and from server to external Repository. File | V Client-->Server-->Repository Iam Using default SDk…
NewCodeLearner
  • 738
  • 3
  • 14
  • 38
1 2
3
55 56