Seems we can't go to twitter 5 yet
This commit is contained in:
		
							parent
							
								
									224cbd7952
								
							
						
					
					
						commit
						203c20f6f3
					
				
					 3 changed files with 24 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -31,12 +31,14 @@ module Ebooks
 | 
			
		|||
        end
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      Twitter::REST::Client.new do |config|
 | 
			
		||||
      Twitter.configure do |config|
 | 
			
		||||
        config.consumer_key = @config[:consumer_key]
 | 
			
		||||
        config.consumer_secret = @config[:consumer_secret]
 | 
			
		||||
        config.access_token = @config[:oauth_token]
 | 
			
		||||
        config.access_token_secret = @config[:oauth_token_secret]
 | 
			
		||||
        config.oauth_token = @config[:oauth_token]
 | 
			
		||||
        config.oauth_token_secret = @config[:oauth_token_secret]
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      Twitter::Client.new
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def initialize(username, path, client=nil)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue