The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-07-2019, 02:35 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using RESTful APIs
06-23-2015, 04:07 AM
Post: #1
using RESTful APIs
This may be a bit of a silly question, but I am new to working with external APIs. I am trying to use the built in APIs found on this page: https://sites.google.com/a/webpagetest.o...ssing-apis using 'requests'. I import requests and make a 'get' request to 'http://www.webpagetest.org/runtest.php', saving it into a variable. But when I then try to perform actions on the variable, like var.ImportUrls(foo.txt), I get an error that the 'Response' object has no attribute 'ImportUrls'. Do I need to install/import webpage test and/or the specific APIs? If so, are there any instructions available on how to do this?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
using RESTful APIs - courtney - 06-23-2015 04:07 AM
RE: using RESTful APIs - pmeenan - 06-24-2015, 11:53 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)