sebonlien / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

Multiple encoded long Urls cannot be shortened. #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?
1. Try sending a shorten request for 3 urls as below :
http://api.bit.ly/v3/shorten?login=<your login>&apiKey=<your
key>&uri=http%3A%2F%2Ftr.dev.oneriot.com%2FHw3RPvCuwyVlsH_bSPtnPaQlDTxUDAhY3svB_
XfF5blu7X2R9NkDY2T6A3kRhuzgx3IdYhzzIqOwkB8QJ9UrvOltvx_aEjRzI4gbpOvHG_bYwC4Ldg2n0
Aw1l_5BPUjqHDKKtgIrtrRYzre6gs_uFsNzuEK4vMlnvgujRvZmuwUG1pP_2emP3_f5ktgqQs&uri=ht
tp%3A%2F%2Ftr.dev.oneriot.com%2FE1aOIteedp9mORbc6dSDs7O8kdfqEISNbpNuusxKzYGVt6YJ
77o7PzJ4_mu82CqZwNDozhpQoq0KgqxjMLcrnNkclEjIF_oKtXKVxdJavVmD7QYWmkUFFtJsnSwArSmf
EpPe-p3EtFxpskJhqWKZt07Ve8ytfHm9aXJsEvUAXGKnbK8kOPgywuvAU0EW8KFj6rru0h3qFLNyrTk4
eR1W0n1705YatGL7C2LfCfH2Wiao1mgyeIBHpFsjrBIgFWY4eUcjO0&uri=http%3A%2F%2Ftr.dev.o
neriot.com%2FELGRm8lCk9yLY2DxvV2d4T2pc_NGI0vsXn9ddoP0UrAMWFa2e8y7m8hYuYBZYTZIKXD
fgMBYhDSokVpkafyhYBjv13O1kSGpsUP3w95ERUUu0KNPOD8IjS4zINdfQOnnZGY_molUjYJ4lLjlMy8
-xP41nwdPqS6vZSAL0HOWlGcWXmBaOvxBB2I5g5Ai2FJy9Ik2w&uri=http%3A%2F%2Ftr.dev.oneri
ot.com%2FMmYlRRt8smq7fBnCg9QKhOK8EdbMMEru-WbHnQSEqR2LZW-Of1YDbxQ4tgobBa0RMq46QSL
cLQPZCrGtV1DcYO6f8WHvuVB1vcDA8YgOrZu6QkVU8B3UXkSTxODhPFD1YOZrefMtJTqyTCBerWbS5U4
wMyeJjm1eSJe5NH02B6kLSGJWDCdpWjyu8z2sN7yR4g&uri=http%3A%2F%2Ftr.dev.oneriot.com%
2FCllW66YqDbk5EcKNEUmeJseYjvDFPjlan2SPfWdUnv-CxVoQ7BuQ2-iXRDCRrsWn2jt0h6pvjCaqvs
3vLYIg0gFszRvyWMLS6Dqms9XCH0HSoI8lqtag5nOqGZIaVlhkpJYqSNafHApHE9NV5Wv1BDDfLC2gg_
vPnhRY3NPJN5sKA&format=xml

2. result is an OK, with only the first url shortened.
3. I tried replacing the "uri" parameter with "longUrl", but the result was
the same as 2 above.

What is the expected output? What do you see instead?
I should see 3 "data" nodes for each of the 3 longUrls

What version of the product are you using? On what operating system?
I'm using version 3.0 of the api on windows XP SP2.

Please provide any additional information below.
shortening of multiple urls used to work fine in version 2.0.1 of the api.

Original issue reported on code.google.com by mathraw...@gmail.com on 13 Apr 2010 at 8:23

GoogleCodeExporter commented 8 years ago
Shortening multiple urls at a time is not a valid v3 request. Valid requests 
are defined in the API 
documentation. 

Original comment by jehiah on 13 Apr 2010 at 8:38