Sha256: 0dd0b7e186d01df769eb16268cfc29d9058c2d45381c9fb8ed845769f2ecc1d4

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

#!ruby -Ku
# -*- encoding: UTF-8 -*-

=begin

  Timelog.jp service major version-up.
  not support 'follow and follower'.

=end

__END__
require 'timelog4r'

t = Timelog4r.new
t.user_id = 'your Timelog ID'
t.password = 'your Password'

friends = t.get_memofriend_list({:cnt => 'all'}
sleep 10
fan = t.get_fan_list({:cnt => 'all'})

not_yet_followings = fan[:entries].map{|i|i[:id]} - friends[:entries].map{|j|j[:id]}

return not_yet_followings

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
timelog4r-0.3.3 example/create_refollow_list.rb
timelog4r-0.3.2 example/create_refollow_list.rb
timelog4r-0.3.1 example/create_refollow_list.rb
timelog4r-0.3.0 example/create_refollow_list.rb