Giter Site home page Giter Site logo

gdata-samples's People

gdata-samples's Issues

MediaService interface missing

What steps will reproduce the problem?
1. we want mediaservice interface 
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Mar 2011 at 9:47

Live demo isn't working with the file you give as example

Dear all,

I've tried the demo available at: 
http://googlecodesamples.com/docs/php/ocr.php with the file that you gave 
as an example. It doesn't work!

I was expecting a text file and I've got the following problem:
"Error processing document:
Expected response code 200, got 400 GData InvalidEntryException Could not 
convert document."

Thanks in advance for any help.


Original issue reported on code.google.com by [email protected] on 23 Feb 2010 at 3:54

signature_invalid while getting access token

What steps will reproduce the problem?
1. Do svn checkout
2. Download Zend framework and put it in subfolder
3. Fill configuration variables with relevant consumer data

What is the expected output? What do you see instead?

Fatal error:  Uncaught exception 'Zend_Gdata_App_HttpException' with message 
'Expected response code 200, got 401[..]' in 
/home/www/[...]/htdocs/gdata.svn/hybrid/Zend/Gdata/App.php:711

And if I trace it, then it happens because of empty access key. At index.php 
line 104
  $access_token = getAccessToken($request_token);

And if I trace that, then printing $responce gives
signature_invalid

Original issue reported on code.google.com by [email protected] on 21 Dec 2010 at 2:56

Youtube DirectUploading ASP.NET

What steps will reproduce the problem?
1. index.aspx using google data api
2. retrieveing a video works fine
3. uploading causes Google.GData.Client.GDataRequestException: Execution of
request failed:
http://uploads.gdata.youtube.com/feeds/api/users/Moneoneseven/uploads
---> System.Net.WebException: The remote server returned an error: (400)
Bad Request.
deleting and updatinf causes Google.GData.Client.GDataRequestException: Can
not update a read-only entry

What is the expected output? What do you see instead?
upload/update/delete video

What version of the product are you using? On what operating system?
lastest API, ASP.NET 3.5, IIS 7

Please provide any additional information below.
i think there's something wrong with authentification (developerkey,
clientid, ...)
manual upload via youtube-website works fine.

Original issue reported on code.google.com by [email protected] on 9 Jul 2009 at 10:07

Patch for /trunk/doclist/OCRDemo/ocr.php

Trying to access the demo at http://googlecodesamples.com/docs/php/ocr.php, but 
am getting "Expected response code 200, got 403 
GDataServiceForbiddenException403.4 SSL required".  Not sure if this would fix 
that but hoping so.

Original issue reported on code.google.com by [email protected] on 14 Feb 2012 at 10:41

Attachments:

Issue of ideal timer in jQuery Idle Timeout Plugin

Hi,

I am using jQuery Idle Timeout Plugin.In this after ideal time a modal screen 
will appear.After click on continue also still the timer is counting.I want 
continue in the same page.Can any one suggest how to solve this.

Thank you.

Original issue reported on code.google.com by [email protected] on 5 Oct 2012 at 1:09

The remote server returned an error: (403) Forbidden in Youtube api

I am using Youtube API to upload videos. Its working fine in my local machine 
but it throws below exception after I implemented my code into server.

The remote server returned an error: (403) Forbidden.

Exception return - 
Execution of request failed: http://gdata.youtube.com/feeds/api/videos/xxxxx

I have mentioned username, developerkey, password correctly. Could you please 
any one help me that where I am wrong?


Original issue reported on code.google.com by [email protected] on 25 Aug 2013 at 8:16

No support for redirects (used by Google Calendar for example)

Several Data APIs, like the Google Calendar API will produce redirects
which are handled properly by the Zend classes but not by the hybrid
example provided here at googlecodesamples.com.

An example redirect would be
http://docs.google.com/feeds/documents/private/full
=>
http://docs.google.com/feeds/documents/private/full?gsessid=xxxxxxxx
(variable name may be inaccurate, sorry).

The problem is that within the hybrid example requests are signed outside
the Zend classes thus the Zend classes have no clue that each request needs
to be signed, only that a specific Authentication header has to be sent.
When a redirect happens, which is handled properly inside
Zend_Gdata_App::performHttpRequest(), this function will call itself to
make the request where the redirect is pointing to. The problem is that the
same Authentication header will be sent again, which will result in a 401
Unauthorized response.

Although I have no time right now to provide a patch, I can attach a sample
replacement inside index.php to make the hybrid example work with Google
Calendar (and possibly other Google Data APIs making redirects):

// [...]

if (isset($_SESSION['redirect_to'])) {
  $redirect = $_SESSION['redirect_to'];
  unset($_SESSION['redirect_to']);
  header('Location: ' .$redirect);
}

// WORKS ONLY WITH GET
class Zend_Oauth_HttpClient extends Zend_Gdata_HttpClient {
    public function filterHttpRequest($method, $url, $headers = array(),
$body = null, $contentType = null) {
        $urlPart = $url;
        if (strpos($url, '?') > 0) {
            list($urlPart, $paramPart) = explode('?', $url, 2);
            parse_str($paramPart, $paramPart);
        }

        $req = OAuthRequest::from_consumer_and_token($GLOBALS['consumer'],
$GLOBALS['access_token'],
                                                   $method, $urlPart,
$paramPart);
        $req->sign_request($GLOBALS['sig_method'], $GLOBALS['consumer'],
$GLOBALS['access_token']);

        $this->setHeaders($req->to_header());

        return array('method' => $method, 'url' => $url, 'body' => $body,
'headers' => $headers, 'contentType' => $contentType);
    }
}

$request_token = @$_REQUEST['openid_ext2_request_token'];
if ($request_token) {
  $data = array();
  $httpClient = new Zend_Oauth_HttpClient();
  $access_token = getAccessToken($request_token);

  // Query the Calendar API ===================================================
  $calendarService = new Zend_Gdata_Calendar($httpClient);

  $feed = $calendarService->getCalendarListFeed();
  $data['calendars']['html'] = listEntries($feed);
  $data['calendars']['xml'] = $feed->saveXML();
  //
===========================================================================

// [...]

Providing a custom HTTP client will sign each and every outgoing request
implicitly. This also makes it unnecessary to pass parameters twice (once
to oauth and one more time to Zend_Gdata_*) because it extracts parameters
internally and uses them for generating the signature. This enables you to
avoid figuring out what parameters each feed actually handles.

Warning: Zend_Oauth_HttpClient is not contained within the Zend Framework
yet; if you see one in there, which is a work in progress right now, use
that one and skip this example! At the time of this writing no Oauth HTTP
client was available within the Zend Framework).

I know this is kinda messy but it may save several weeks for some people.
Hope it makes sense!

Best Regards,
Norbert Mocsnik
http://sethigherstandards.net

Original issue reported on code.google.com by [email protected] on 6 Nov 2009 at 12:13

Your example is in "example" not "examples"

What steps will reproduce the problem?

svn checkout and try to build the as3 example, which is in:
com/google/youtube/example/
fails.

But the mxml and as3 file refer to package "examples" (note plural) changing 
these fixes the problem.


Original issue reported on code.google.com by [email protected] on 4 May 2010 at 5:10

Hybrid authentication demo always fails (as does my code)

What steps will reproduce the problem?

1. Use the demo and grant permission. http://googlecodesamples.com/hybrid/

This always fails for me with the following output:

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with 
message 'Expected response code 200, got 401 <HTML> <HEAD> <TITLE>Unknown 
authorization header</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" 
TEXT="#000000"> <H1>Unknown authorization header</H1> <H2>Error 401</H2> 
</BODY> </HTML> ' in /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata/App.php:689 Stack trace: 
#0 /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata.php(218): Zend_Gdata_App->performHttpRequest
('GET', 'http://spreadsh...', Array, NULL, NULL, NULL) 
#1 /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata/App.php(842): Zend_Gdata->performHttpRequest
('GET', 'http://spreadsh...', Array) 
#2 /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata/App.php(742): Zend_Gdata_App->get
('http://spreadsh...', NULL) 
#3 /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata/App.php(204): Zend_Gdata_App->importUrl
('http://spreadsh...', 'Zend_Gdata_Spre...', NULL) #4 /srv/www/www.googl 
in /srv/www/www.googlecodesamples.com/ZendGdata-
1.7.7/library/Zend/Gdata/App.php on line 689



Please provide any additional information below.

I see the same behavior with my application. I haven't been able to track 
down the problem.


Original issue reported on code.google.com by [email protected] on 8 Apr 2010 at 7:22

Patch for /trunk/gadgets/blogger/blogger_gadget.xml

<!--************CODE GEOCOUNTER************-->
<script type="text/javascript" 
src="http://geoloc1.whoaremyfriends.com/private/geocounter.js?compte=40916672764
7"></script>
<noscript>
<a 
href="http://www.geovisites.com/pt/directory/adulto_amadores.php?compte=40916672
7647"  target="_blank"><img 
src="http://geoloc1.whoaremyfriends.com/private/geocounter.php?compte=4091667276
47" border="0" alt="amadores"></a>

<br>Please do not change this code for a perfect fonctionality of your counter
<a 
href="http://www.geovisites.com/pt/directory/adulto_amadores.php">amadores</a>
</noscript>
<br><a 
href="http://brasil.shopbusca.com/s_2771__lingerie-e-acessorios_.html">lingerie<
/a>
<!--************END CODE GEOCOUNTER************-->

Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 5:16

Attachments:

hybrid/oath sample produces php error

What steps will reproduce the problem?
1. Point browser to http://googlecodesamples.com/hybrid/

What is the expected output? What do you see instead?
Expected: the app
Actual:
Warning: require_once(Auth/OpenID/Consumer.php) [function.require-once]:
failed to open stream: No such file or directory in
/srv/www/www.googlecodesamples.com/public/hybrid/common.inc.php  on line 6

Fatal error: require_once() [function.require]: Failed opening required
'Auth/OpenID/Consumer.php'
(include_path='.:/srv/www/www.googlecodesamples.com/Zend/library:/usr/share/php:
/usr/share/pear')
in /srv/www/www.googlecodesamples.com/public/hybrid/common.inc.php on line 6

What version of the product are you using? On what operating system?
n/a


Original issue reported on code.google.com by [email protected] on 9 Mar 2010 at 1:33

You tube downloaded page

Hello,

I was getting following error while accessing you tube downloaded page in my 
host. Technically I am not good, please help.

Warning: require_once(config.inc.php) [function.require-once]: failed to open 
stream: No such file or directory in 
/hermes/web06/b1537/testdiyarakesha/uploads/youtube.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 
'config.inc.php' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in 
/hermes/web06/b1537/testdiyarakesha/uploads/youtube.php on line 19

Thank you
Regan 


Original issue reported on code.google.com by [email protected] on 27 Jun 2010 at 11:45

Service.Get() tunnels an Entry Get in a Feed Get to get an individual entry

The problem with this is that the client is forcing a "self" url 
(.../feed?id=blah) that is different than 
the self returned by the server (/entry/id). I either have to adopt 
/feed?id=blah as the entry url for 
all clients or I have a situation where the url in Entry.SelfUri is different 
than the one that should be 
used to retrieve the entry.

As a suggestion, either the gdata .net client should not tunnel an entry get in 
a feed get returning 
one entry or it should override Entry.SelfUri to always return /feed?id=blah 
(btw, I am not able to do 
override this since these key methods/properties are not virtual).

Original issue reported on code.google.com by [email protected] on 28 Apr 2010 at 12:39

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.