How to setup the REST API

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to setup the REST API

Mastermonk
how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:

https://github.com/adhearsion/adhearsion/wiki/RESTful-API

I can't find a start.rb

or config/components....

in my application


please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to setup the REST API

Ben Klang-2

Il giorno Aug 13, 2014, alle ore 4:14 PM, Mastermonk <[hidden email]> ha scritto:

how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:


I can't find a start.rb

or config/components....

in my application


Components no longer exist in Adhearsion 2. Instead we have a stronger [plugin](http://adhearsion.com/docs/plugins) system.

If you are familiar with Sinatra or Grape, you can use those with the Virginia plugin, assuming you stick to the “v2” branch (which is unreleased since we’re still polishing it up, but does work.

To use it, put this in your Gemfile:

gem ‘virginia’, github: ‘polysics/virginia’, branch: ‘feature/v2'


/BAK/

please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.


signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to setup the REST API

Mastermonk
In reply to this post by Mastermonk
Thank you, i'll give that a try.
On Wednesday, August 13, 2014 2:14:12 PM UTC-6, Mastermonk wrote:
how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:

<a href="https://github.com/adhearsion/adhearsion/wiki/RESTful-API" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;">https://github.com/adhearsion/adhearsion/wiki/RESTful-API

I can't find a start.rb

or config/components....

in my application


please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to setup the REST API

Jack Stephen
In reply to this post by Ben Klang-2
Did 'gem install virginia' just fine.
Then added 'gem 'virginia'' to Gemfile and now 'ahn start' fails with  "undefined method `namespace' for main:Object (NoMethodError)" error.

Any suggestions/help will be greatly appreciated.




On Wednesday, August 13, 2014 1:21:09 PM UTC-7, Ben Klang wrote:

Il giorno Aug 13, 2014, alle ore 4:14 PM, Mastermonk <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5QuU5jAwutoJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">pre...@...> ha scritto:

how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:

<a href="https://github.com/adhearsion/adhearsion/wiki/RESTful-API" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;">https://github.com/adhearsion/adhearsion/wiki/RESTful-API

I can't find a start.rb

or config/components....

in my application


Components no longer exist in Adhearsion 2. Instead we have a stronger [plugin](<a href="http://adhearsion.com/docs/plugins" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fplugins\46sa\75D\46sntz\0751\46usg\75AFQjCNH39_ryO85L4KDbnfloEhkLCTbSvw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fplugins\46sa\75D\46sntz\0751\46usg\75AFQjCNH39_ryO85L4KDbnfloEhkLCTbSvw';return true;">http://adhearsion.com/docs/plugins) system.

If you are familiar with Sinatra or Grape, you can use those with the Virginia plugin, assuming you stick to the “v2” branch (which is unreleased since we’re still polishing it up, but does work.

To use it, put this in your Gemfile:

gem ‘virginia’, github: ‘polysics/virginia’, branch: ‘feature/v2'

Docs here: <a href="https://github.com/polysics/virginia/tree/feature/v2" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpolysics%2Fvirginia%2Ftree%2Ffeature%2Fv2\46sa\75D\46sntz\0751\46usg\75AFQjCNHUNUvKRIW7Om4A8Xv8LSv7b-UDzg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpolysics%2Fvirginia%2Ftree%2Ffeature%2Fv2\46sa\75D\46sntz\0751\46usg\75AFQjCNHUNUvKRIW7Om4A8Xv8LSv7b-UDzg';return true;">https://github.com/polysics/virginia/tree/feature/v2

/BAK/

please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="5QuU5jAwutoJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to setup the REST API

Ben Langfeld-2
You're going to have to post the full error, preferably full logs of your app from the point you start it to the point it crashes.

On 11 November 2014 17:31, Jack Stephen <[hidden email]> wrote:
Did 'gem install virginia' just fine.
Then added 'gem 'virginia'' to Gemfile and now 'ahn start' fails with  "undefined method `namespace' for main:Object (NoMethodError)" error.

Any suggestions/help will be greatly appreciated.




On Wednesday, August 13, 2014 1:21:09 PM UTC-7, Ben Klang wrote:

Il giorno Aug 13, 2014, alle ore 4:14 PM, Mastermonk <[hidden email]> ha scritto:

how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:


I can't find a start.rb

or config/components....

in my application


Components no longer exist in Adhearsion 2. Instead we have a stronger [plugin](http://adhearsion.com/docs/plugins) system.

If you are familiar with Sinatra or Grape, you can use those with the Virginia plugin, assuming you stick to the “v2” branch (which is unreleased since we’re still polishing it up, but does work.

To use it, put this in your Gemfile:

gem ‘virginia’, github: ‘polysics/virginia’, branch: ‘feature/v2'


/BAK/

please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to setup the REST API

Justin Aiken
In reply to this post by Jack Stephen
What version of Virginia and adhearsion are you using?

-Justin


On November 11, 2014 at 12:31:53 PM, Jack Stephen ([hidden email]) wrote:

Did 'gem install virginia' just fine.
Then added 'gem 'virginia'' to Gemfile and now 'ahn start' fails with  "undefined method `namespace' for main:Object (NoMethodError)" error.

Any suggestions/help will be greatly appreciated.




On Wednesday, August 13, 2014 1:21:09 PM UTC-7, Ben Klang wrote:

Il giorno Aug 13, 2014, alle ore 4:14 PM, Mastermonk <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5QuU5jAwutoJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">pre...@...> ha scritto:

how so I setup the REST API on my app. all the examples I see are for the adhearsion 1.x 

I like to make some calls using rest. 

I seen the following articles but they don't seem to apply:

<a href="https://github.com/adhearsion/adhearsion/wiki/RESTful-API" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion%2Fwiki%2FRESTful-API\46sa\75D\46sntz\0751\46usg\75AFQjCNGgV_apsEVHvfQp2a4j70m9mqnx_A';return true;"> https://github.com/adhearsion/adhearsion/wiki/RESTful-API

I can't find a start.rb

or config/components....

in my application


Components no longer exist in Adhearsion 2. Instead we have a stronger [plugin](<a href="http://adhearsion.com/docs/plugins" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fplugins\46sa\75D\46sntz\0751\46usg\75AFQjCNH39_ryO85L4KDbnfloEhkLCTbSvw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fplugins\46sa\75D\46sntz\0751\46usg\75AFQjCNH39_ryO85L4KDbnfloEhkLCTbSvw';return true;">http://adhearsion.com/docs/plugins) system.

If you are familiar with Sinatra or Grape, you can use those with the Virginia plugin, assuming you stick to the “v2” branch (which is unreleased since we’re still polishing it up, but does work.

To use it, put this in your Gemfile:

gem ‘virginia’, github: ‘polysics/virginia’, branch: ‘feature/v2'

Docs here: <a href="https://github.com/polysics/virginia/tree/feature/v2" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpolysics%2Fvirginia%2Ftree%2Ffeature%2Fv2\46sa\75D\46sntz\0751\46usg\75AFQjCNHUNUvKRIW7Om4A8Xv8LSv7b-UDzg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpolysics%2Fvirginia%2Ftree%2Ffeature%2Fv2\46sa\75D\46sntz\0751\46usg\75AFQjCNHUNUvKRIW7Om4A8Xv8LSv7b-UDzg';return true;">https://github.com/polysics/virginia/tree/feature/v2

/BAK/

please help.


Thanks.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="5QuU5jAwutoJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.