API should accept encoded brackets for callback in the JavaScript response type!

0 views
Skip to first unread message

PC

unread,
Jun 24, 2008, 5:12:02 AM6/24/08
to Digg API, s...@digg.com
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=javascript&callback=myfunc%5B4%5D

( '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! : )

Steve Williams

unread,
Jun 24, 2008, 9:35:34 AM6/24/08
to dig...@googlegroups.com
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/40452651cdef1ad9

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

Reply all
Reply to author
Forward
0 new messages