raczylo.com blog ~ #

Using wykop.pl API with ruby gem

Created on 2015-01-04 in categories dev , projects , gems
Tagged as: ruby , wykop , api , gem , opensource

How to use wykop.pl API with Ruby. Ready solution can be found here!

Wykop.pl is the most popular social sharing website in Poland with 2 million unique visitors and 50 millions of views monthly ( source ). Some time ago they managed to publish their API, unfortunately its documentation is very crufty and far from “well known” standards. I’m a Ruby fan and there was ‘something is missing’ part - no ruby gem (!!!), at least till now.

Sample and simple script

#!/usr/bin/env ruby
# Sample client for wykop.pl gem
require 'wykop'
CFG_USER_KEY    = 'xxxx'
CFG_USER_NAME   = 'ouna-'
CFG_GEN_SECRET  = 'bbbb'
client = Wykop::Client.new({ app_user_key: CFG_USER_KEY, app_user_secret: CFG_USER_SECRET,app_username: CFG_USER_NAME, app_generated_key: CFG_GEN_SECRET, api_host: 'http://a.wykop.pl' })
if client.login
  ap client.search_profiles({:q => 'ouna-', :page => 2})

* Table of contents *

* Check other posts *

* Categories *

aws(1) cloud(3) dev(3) gems(1) howto(3) insights(1) internet(1) learning(1) lesson(1) mac(1) ops(8) post(1) projects(3) script(1) social(1) tools(1) tutorial(5)

* Tags *

api(2) apple(2) aws(3) bash(1) cloud(5) cluster(1) devices(1) docker(1) ec2(1) elasticsearch(1) gcp(1) gem(1) github(2) go(1) golang(2) google-authenticator(1) google-cloud(3) internet(1) iptables(1) kubernetes(1) linux(2) littleguardian(1) logging(1) mac(2) netgear(1) network(1) opensource(1) openvpn(1) osx(2) pci-compliance(1) review(1) ruby(2) security(2) ssh(1) tethering(1) tplink(1) ubuntu(1) wykop(1) yubikey(1)
comments powered by Disqus