anibalcucco / basecamp-wrapper

Using the Basecamp API with Ruby
Apache License 2.0
77 stars 29 forks source link

Changing default return format #10

Closed cored closed 12 years ago

cored commented 13 years ago

Hi guys,

How can I change the default format from JSON to XML?

Thanks in advance.

anibalcucco commented 13 years ago

Basecamp.use_xml = true

https://github.com/anibalcucco/basecamp-wrapper/blob/master/lib/basecamp/base.rb

cored commented 13 years ago

I tried that before my call but did not work. I'll show you my code soon.

2011/10/10 Anibal Cucco < reply@reply.github.com>

Basecamp.use_xml = true

https://github.com/anibalcucco/basecamp-wrapper/blob/master/lib/basecamp/base.rb

Reply to this email directly or view it on GitHub:

https://github.com/anibalcucco/basecamp-wrapper/issues/10#issuecomment-2352659

Rafael George

cored commented 13 years ago

https://gist.github.com/1276795

I'm using that code without success.

anibalcucco commented 13 years ago

To be honest, i haven't tried the use_xml option, that's a legacy thing from the 37Signals' ruby wrapper (http://developer.37signals.com/basecamp/basecamp.rb) and i never had to use it.

Can you be more specific and let me know what kind of calls you're trying to do and why you need xml? maybe we can find the solution together.

cored commented 13 years ago

Sure,

I'm trying to use the wrapper instead of the local api, for this provider. http://github.com/hybridgroup/ticketmaster-basecamp

I need xml just because I don't want to retrieve all the fixtures for the specs in json that's all is a lazy thing, just that.

2011/10/10 Anibal Cucco < reply@reply.github.com>

To be honest, i haven't tried the use_xml option, that's a legacy thing from the 37Signals' ruby wrapper ( http://developer.37signals.com/basecamp/basecamp.rb) and i never had to use it.

Can you be more specific and let me know what kind of calls you're trying to do and why you need xml? maybe we can find the solution together.

Reply to this email directly or view it on GitHub:

https://github.com/anibalcucco/basecamp-wrapper/issues/10#issuecomment-2353433

Rafael George

anibalcucco commented 12 years ago

Hey,

Now i'm using xml as the default format for the active resource connection: https://github.com/anibalcucco/basecamp-wrapper/commit/a5d7b69a0440e92dcfd60988ca83a79c18c5d2c5

Cheers, Anibal

cored commented 12 years ago

Cool, thanks

On Wed, Nov 23, 2011 at 8:28 PM, Anibal Cucco < reply@reply.github.com

wrote:

Hey,

Now i'm using xml as the default format for the active resource connection: https://github.com/anibalcucco/basecamp-wrapper/commit/a5d7b69a0440e92dcfd60988ca83a79c18c5d2c5

Cheers, Anibal


Reply to this email directly or view it on GitHub:

https://github.com/anibalcucco/basecamp-wrapper/issues/10#issuecomment-2856889

Rafael George