Google Groups Home
Help | Sign in
API should accept encoded brackets for callback in the JavaScript response type!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
PC  
View profile
 More options Jun 24, 5:12 am
From: PC <micro...@gmail.com>
Date: Tue, 24 Jun 2008 02:12:02 -0700 (PDT)
Local: Tues, Jun 24 2008 5:12 am
Subject: API should accept encoded brackets for callback in the JavaScript response type!
Hello!

I am trying to use the JavaScript response type with a callback
parameter, but the response is "A Digg API Request has an invalid
callback argument."

My callback is actually a necessary ARRAY that is referencing a
function.  Unfortunately, the callback parameter doesn't support the
array's brackets as I'm trying to do:

http://services.digg.com/topics?appkey=http%3A%2F%2Fexample.com&type=...

( 'myfunc%5B4%5D' is the url-encoded 'myfunc[4]' -- an array for
JavaScript! )

Yahoo, for example, supports encoded brackets:

http://developer.yahoo.com/common/json.html
"Important: brackets requested in callbacks must be URL encoded"

I'm extra-hoping that the Digg API can soon support url-encoded
brackets in the callback!  Thanks!  : )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Williams  
View profile
 More options Jun 24, 9:35 am
From: Steve Williams <s...@digg.com>
Date: Tue, 24 Jun 2008 06:35:34 -0700
Local: Tues, Jun 24 2008 9:35 am
Subject: Re: [diggapi] API should accept encoded brackets for callback in the JavaScript response type!
At 02:12 AM 6/24/2008, PC wrote:

>My callback is actually a necessary ARRAY ...

Please see this earlier thread:

http://groups.google.com/group/diggapi/browse_thread/thread/40452651c...

I'll be interested to hear your response to my comments there.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google