Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread Stephan Eggermont
Esteban wrote
> What am I missing? Authentication?

MCHttpRepository
location: 
'http://smalltalkhub.com/mc/StephanEggermont/DeprecationFinder/main'
user: ''





Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread Sven Van Caekenberghe

On 28 Jul 2014, at 17:20, Tudor Girba  wrote:

> Naively, I am trying to just get it like this:
> ZnEasy get: 'http://smalltalkhub.com/girba/GPlay/packages'

It is almost that easy, you just need the right API:

ZnClient new
  contentReader: [ :entity | NeoJSONReader fromString: entity contents ];
  get: 'http://smalltalkhub.com/hub/projects/SvenVanCaekenberghe' 

I just got this call from looking at the XHR traffic in the browser, I really 
do not know the rest of the API.

HTH,

Sven


Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread kilon alios
thanks damien and esteban :)


On Mon, Jul 28, 2014 at 2:56 PM, Damien Cassou 
wrote:

> https://ci.inria.fr/pharo-contribution/job/SmalltalkHub/?
>
> There is an undocumented REST API that the Amber client uses.
>
> On Sun, Jul 27, 2014 at 2:23 PM, kilon alios 
> wrote:
> > I wonder if there is a way to operate smalltalkhub from pharo. What would
> > interest me is to browser smalltalkhub from pharo and do anything I can
> do
> > from the website with pharo.
> >
> > I am new with these things so I assume Zinc would be useful here , no ?
> >
> > is there any docs for smalltalkhub api ?
> >
> > Anyone tried something similar before ?
> >
> > I tried to load Smalltalkub configuration but it looks like that the
> config
> > does not define neither a stable or a developement version .
>
>
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
>
>


Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread Esteban Lorenzano

On 28 Jul 2014, at 17:20, Tudor Girba  wrote:

> I am interested in this as well.
> 
> I looked a bit at the Hub REST API, and I see I can do this: 
> 
> ShRepositoryHandler>>getPackagesOf: name owner: username
>   
>   
>   
> 
> 
> Naively, I am trying to just get it like this:
> ZnEasy get: 'http://smalltalkhub.com/girba/GPlay/packages'
> 
> but it obviously does not work.
> 
> What am I missing? Authentication?

yes. 
please notice there is also the package HubClient (under smalltalkhub project), 
who already provides a entry point for querying sthub from pharo (but… most 
probably is unmaintained and with errors, he).

Esteban 


> 
> Cheers,
> Doru
> 
> 
> 
> On Mon, Jul 28, 2014 at 1:56 PM, Damien Cassou  
> wrote:
> https://ci.inria.fr/pharo-contribution/job/SmalltalkHub/?
> 
> There is an undocumented REST API that the Amber client uses.
> 
> On Sun, Jul 27, 2014 at 2:23 PM, kilon alios  wrote:
> > I wonder if there is a way to operate smalltalkhub from pharo. What would
> > interest me is to browser smalltalkhub from pharo and do anything I can do
> > from the website with pharo.
> >
> > I am new with these things so I assume Zinc would be useful here , no ?
> >
> > is there any docs for smalltalkhub api ?
> >
> > Anyone tried something similar before ?
> >
> > I tried to load Smalltalkub configuration but it looks like that the config
> > does not define neither a stable or a developement version .
> 
> 
> 
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
> 
> 
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"



Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread Tudor Girba
I am interested in this as well.

I looked a bit at the Hub REST API, and I see I can do this:

ShRepositoryHandler>>getPackagesOf: name owner: username





Naively, I am trying to just get it like this:
ZnEasy get: 'http://smalltalkhub.com/girba/GPlay/packages'

but it obviously does not work.

What am I missing? Authentication?

Cheers,
Doru



On Mon, Jul 28, 2014 at 1:56 PM, Damien Cassou 
wrote:

> https://ci.inria.fr/pharo-contribution/job/SmalltalkHub/?
>
> There is an undocumented REST API that the Amber client uses.
>
> On Sun, Jul 27, 2014 at 2:23 PM, kilon alios 
> wrote:
> > I wonder if there is a way to operate smalltalkhub from pharo. What would
> > interest me is to browser smalltalkhub from pharo and do anything I can
> do
> > from the website with pharo.
> >
> > I am new with these things so I assume Zinc would be useful here , no ?
> >
> > is there any docs for smalltalkhub api ?
> >
> > Anyone tried something similar before ?
> >
> > I tried to load Smalltalkub configuration but it looks like that the
> config
> > does not define neither a stable or a developement version .
>
>
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] Operating Smalltalkhub from Pharo

2014-07-28 Thread Damien Cassou
https://ci.inria.fr/pharo-contribution/job/SmalltalkHub/?

There is an undocumented REST API that the Amber client uses.

On Sun, Jul 27, 2014 at 2:23 PM, kilon alios  wrote:
> I wonder if there is a way to operate smalltalkhub from pharo. What would
> interest me is to browser smalltalkhub from pharo and do anything I can do
> from the website with pharo.
>
> I am new with these things so I assume Zinc would be useful here , no ?
>
> is there any docs for smalltalkhub api ?
>
> Anyone tried something similar before ?
>
> I tried to load Smalltalkub configuration but it looks like that the config
> does not define neither a stable or a developement version .



-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill