This document provides instructions for configuring a Twitter application to use OAuth authentication with the Twitter4R library. It describes setting up a new Twitter app, configuring consumer tokens, getting access tokens for each user by redirecting them to Twitter for authorization, and using the access tokens when interacting with Twitter on behalf of each user. The goal is for third party apps to authenticate with Twitter using OAuth instead of requiring users to share their passwords.
Intro to developing for @twitterapi (updated)Raffi Krikorian
A short primer on how to develop for the Twitter API.
This is the newly edited version of http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twitterapi
“Hack facebook” usually doesn’t mean a remote attacker actually broke into your account to wreak havoc left, right, and center. Among the users of the social network, the term really just means you forgot to logout of your Facebook account, and your friends took advantage by posting (usually embarrassing) status updates. If this is the type of thing that tickles your fancy, then hack facebook is for you.
Get more detail on:http://hackfacebookapp.com/index.php/effective/
Intro to developing for @twitterapi (updated)Raffi Krikorian
A short primer on how to develop for the Twitter API.
This is the newly edited version of http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twitterapi
“Hack facebook” usually doesn’t mean a remote attacker actually broke into your account to wreak havoc left, right, and center. Among the users of the social network, the term really just means you forgot to logout of your Facebook account, and your friends took advantage by posting (usually embarrassing) status updates. If this is the type of thing that tickles your fancy, then hack facebook is for you.
Get more detail on:http://hackfacebookapp.com/index.php/effective/
Методическая лаборатория русского языка и литературы МИОО благодарит за сотрудничество учителей русского языка и литературы общеобразовательных учреждений г. Москвы, членов предметной комиссии (подкомиссии) по русскому языку Городской экзаменационной комиссии для проведения государственной (итоговой) аттестации обучающихся, освоивших образовательные программы основного общего образования, в 2010 году.
Со 2 по 8 июня 880 экспертов проверили в общей сложности более 120 000 экзаменационных работ по русскому языку в формате ГИА 9.
I have come across number of boys whose life was on the brink of devastation because of the false belief that masturbation or wet dreams (nightfall) results in loss of semen and is harmful in the present as well as the future.
Masturbation, a boon is a bane in South East Asian countries. Hasta-maithun, Swapan-maithun, Yoni-maithun, Mukh-maithun aren't all these maithun? It is unfortunate that in the land of the sexopedia, Kamasutra, boys suffer silently due to MYTHS about masturbation (hastamaithun, hand job) and wet dreams (nightfall). A book can be written on the number of ill consequences attributed to masturbation. Sex therapists have better things to do than deal with this obviously silly notion. Don't be shocked if you find that your teenage boy is a prey to this monster myth. Are his grades falling unexpectedly? Has the gregarious teenager become a recluse lately? The reason is though 98 out of 100 boys masturbate, over 70 % boys believe masturbation is 'bacchpan ki galati' and have labeled themselves as addicts. Hopelessly they confess having masturbated in excess and beginning at a very young age. Inconsolable boys would not have to suffer silent pangs if an elder or peer reassured them that masturbation is healthy, normal, natural, useful and a safe sexual outlet. Acharya Vallabhdev in his subhashitavalli sweetly says, "For a cultured boy sex with a woman other than wife is blasphemous. For a cultured boy without a wife, best is the beautiful damsel hand." The allegory used is "prashastha karasundari". Anyone reading this can pass on this bit of knowledge, "masturbation is harmless". Let us not leave teenagers to suffer silently and be exploited by quacks ruthlessly.
"Oh! I lost erection when I began wearing condom."
"I discharge quickly"
"I lose erection after getting in".
Knowing the psycho - physiology of erection gives a valuable trick to regain erection. Tips on erection without medicines from a sexologist http://mydoctortells.com/regain-erection-video/
A talk given at PHP London on 4th November 2010. This provides an introduction to OAuth and a simplistic PHP implementation of a consumer, as well as a few things to think about when creating a provider.
Spring Social - Messaging Friends & Influencing PeopleGordon Dickens
Conference Abstract:
This session will focus on integrating with social media with your Spring projects. The Spring Social project allows developers to interact with Twitter, LinkedIn, Facebook & TripIt in web and mobile projects. We will discuss security concerns with OAuth 1.0 & 2.0 and how Spring templates make our job easier.
Topics Include:
- Spring Greenhouse - reference implementation of Spring Social
- Spring Mobile - integrating Spring Social with iPhone & Android
- Security with OAuth
- Accessing Social data with REST, JSON & XML
- Examples of Spring Social Media Templates
Методическая лаборатория русского языка и литературы МИОО благодарит за сотрудничество учителей русского языка и литературы общеобразовательных учреждений г. Москвы, членов предметной комиссии (подкомиссии) по русскому языку Городской экзаменационной комиссии для проведения государственной (итоговой) аттестации обучающихся, освоивших образовательные программы основного общего образования, в 2010 году.
Со 2 по 8 июня 880 экспертов проверили в общей сложности более 120 000 экзаменационных работ по русскому языку в формате ГИА 9.
I have come across number of boys whose life was on the brink of devastation because of the false belief that masturbation or wet dreams (nightfall) results in loss of semen and is harmful in the present as well as the future.
Masturbation, a boon is a bane in South East Asian countries. Hasta-maithun, Swapan-maithun, Yoni-maithun, Mukh-maithun aren't all these maithun? It is unfortunate that in the land of the sexopedia, Kamasutra, boys suffer silently due to MYTHS about masturbation (hastamaithun, hand job) and wet dreams (nightfall). A book can be written on the number of ill consequences attributed to masturbation. Sex therapists have better things to do than deal with this obviously silly notion. Don't be shocked if you find that your teenage boy is a prey to this monster myth. Are his grades falling unexpectedly? Has the gregarious teenager become a recluse lately? The reason is though 98 out of 100 boys masturbate, over 70 % boys believe masturbation is 'bacchpan ki galati' and have labeled themselves as addicts. Hopelessly they confess having masturbated in excess and beginning at a very young age. Inconsolable boys would not have to suffer silent pangs if an elder or peer reassured them that masturbation is healthy, normal, natural, useful and a safe sexual outlet. Acharya Vallabhdev in his subhashitavalli sweetly says, "For a cultured boy sex with a woman other than wife is blasphemous. For a cultured boy without a wife, best is the beautiful damsel hand." The allegory used is "prashastha karasundari". Anyone reading this can pass on this bit of knowledge, "masturbation is harmless". Let us not leave teenagers to suffer silently and be exploited by quacks ruthlessly.
"Oh! I lost erection when I began wearing condom."
"I discharge quickly"
"I lose erection after getting in".
Knowing the psycho - physiology of erection gives a valuable trick to regain erection. Tips on erection without medicines from a sexologist http://mydoctortells.com/regain-erection-video/
A talk given at PHP London on 4th November 2010. This provides an introduction to OAuth and a simplistic PHP implementation of a consumer, as well as a few things to think about when creating a provider.
Spring Social - Messaging Friends & Influencing PeopleGordon Dickens
Conference Abstract:
This session will focus on integrating with social media with your Spring projects. The Spring Social project allows developers to interact with Twitter, LinkedIn, Facebook & TripIt in web and mobile projects. We will discuss security concerns with OAuth 1.0 & 2.0 and how Spring templates make our job easier.
Topics Include:
- Spring Greenhouse - reference implementation of Spring Social
- Spring Mobile - integrating Spring Social with iPhone & Android
- Security with OAuth
- Accessing Social data with REST, JSON & XML
- Examples of Spring Social Media Templates
I used to dislike OAuth (Open Standard for Authentication): how do I implement it? In this slideshow, we delve into consuming it with the Google APIs. We go first into the background and then step-by-step through the process. Follow along today!
Shows how to be an oauth consumer and provider from PHP - OAuth 1 - including handling of tokens, secrets, and handling the workflow for devices. Also covers the workflow for OAuth 2
Presentation describes different authentication ways to protect web application. It shows difference between custom approach and authentication with OAuth1 and OAuth2.
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
Learn about the basics of OAuth 2.0 and the different OAuth flows in this introductory video. Understand how OAuth works and the various authorization mechanisms involved.
Data Synchronization Patterns in Mobile Application DesignEric Maxwell
Data synchronization and offline capabilities are key to creating successful mobile applications and there are many factors to consider.
– What data format should you use?
– How do you manage security?
– How do you efficiently manage syncing data to hundreds of applications independently?
In this session, you’ll learn about various factors that drive answers to these questions. You’ll also learn from live code and interactive demonstrations how to use SSL and OAUTH2 to securely synchronize JSON data with a remote REST service and how to use synchronization tokens to efficiently keep your clients up to date. There will be client examples included for both the iOS and Android platforms, but you’ll be able to apply these concepts to any client, regardless of your platform.
APIdays Paris 2018 - Learning the OAuth Dance (Without Stepping on Anyone's T...apidays
Learning the OAuth Dance (Without Stepping on Anyone's Toes)
Anabella Spinelli, Former QA & Future Developer, Typeform
Apply to be a speaker here - https://apidays.typeform.com/to/J1snsg
When transitioning to functional programming as an already experienced developer in the imperative arts, one important skill fundamental to my technical maturity was thinking in terms of the properties of the systems I was building.
From modeling application domain constraints to testing distributed systems at scale in production, I found that thinking in properties can help you and your team build more sustainable systems.
Property-based testing provides a launchpad to discover and practice this mental model in your software development activities.
This session is for developers starting to exploit property-based testing from beginner to intermediate level and will:
- quickly review property-based testing
- identify common pitfalls with property-based testing alone
- suggest how to combine with other techniques and approaches to avoid their pitfalls
- illustrate think in properties so you can employ property-based “tests” at all phases of development
Limited exposure to the idea of property-based testing is desirable but not required. Code examples will be in Haskell.
Champaign-Urbana Javascript Meetup Talk (Jan 2020)Susan Potter
Using Purescript (which transpiles to Javascript), we look at how you can build an API over HTTP by describing our endpoints using expressive types that can be deployed as a simple Node process. With this approach we try to focus our development efforts on our business domain and logic as opposed to the plumbing.
Dynamically scaling a political news and activism hub (up to 5x the traffic i...Susan Potter
On any given day DailyKos can receive traffic peaks up to five times our base traffic, sometimes requiring us to scale out to double our backend app server capacity within a 10-20 minutes window (sometimes at unpredictable times). In this talk, Susan Potter will discuss DailyKos's use of autoscaling in EC2 from the essential components to some gotchas learned along the way.
Functional Operations (Functional Programming at Comcast Labs Connect)Susan Potter
Functional Operations: Packaging, system/configuration building, and testing infrastructure with [Nix] lambda
Maintaining configurations for different kinds of nodes and cloud resources in a [micro]service architecture can be an operational nightmare, especially if not managed with the application codebase. CI and CD job environments diverge from production configuration yielding their results unpredictable at best or produce false positives in the worst case. Code pushes to staging and production can have unintended consequences that can't be reasoned about before deploy and often can’t be inspected thoroughly on a dry run. Leading to unhappy users when problems do arise.
This session will demonstrate the use of the Nix and NixOS ecosystem to define and build packages in a referentially transparent way which can be leveraged as a solid foundation to configure systems and test multiple [virtual] machines with coordinated scenarios. We also look at how reliable packaging allows us to build a consistent CI/CD pipeline where upgrading your version of the JVM doesn't break your CI build servers for days.
From Zero to Application Delivery with NixOSSusan Potter
Managing configurations for different kinds of nodes and cloud resources in a microservice architecture can be an operational nightmare, especially if not managed with the application codebase. CI and CD job environments often tend to stray from production configuration yielding their results unpredictable at best, or producing false positives in the worst case. Code pushes to staging and production can have unintended consequences which often can’t be inspected fully on a dry run.
This session will show you a toolchain and immutable infrastructure principles that will allow you to define your infrastructure in code versioned alongside your application code that will give you repeatable configuration, ephemeral testing environments, consistent CI/CD environments, and diffable dependency transparency all before pushing changes to production.
From Zero To Production (NixOS, Erlang) @ Erlang Factory SF 2016Susan Potter
This talk will introduce the audience to the Nix packaging, NixOS, and related ecosystem tools for Erlang/Elixir developers.
By reviewing common development, testing, and deployment problems we will look at what Nix has to offer to aid Erlang/Elixir developers in these areas.
From seamless developer environment bootstrapping to consistent CI environments and beyond.
In functional programming, words from Category Theory are thrown around, but how useful are they really?
This session looks at applications of monoids specifically and how using their algebraic properties offers a solid foundation of reasoning in many types of business domains and reduces developer error as computational context complexity increases.
This will provide a tiny peak at Category Theory's practical uses in software development and modeling. Code examples will be in Haskell and Scala, but monoids could be constructed in almost any language by software craftsmen and women utilizing higher orders of reasoning to their code.
Monads, also known as Kleisli triples in Category Theory, are an (endo-)functor together with two natural transformations, which are surprisingly useful in pure languages like Haskell, but this talk will NOT reference monads. Ever. (Well, at least not in this talk.)
Instead what I intend to impress upon an audience of newcomers to Haskell is the wide array of freely available libraries most of which are liberally licensed open source software, intuitive package management, practical build tools, reasonable documentation (when you know how to read it and where to find it), interactive shell (or REPL), mature compiler, stable runtime, testing tools that will blow your mind away, and a small but collaborative and knowledgeable community of developers. Oh, and some special features of Haskell - the language - too!
Find out how to build decentralized, fault-tolerant, stateful application services using core concepts and techniques from the Amazon Dynamo paper using riak_core as a toolkit.
Distributed Developer Workflows using GitSusan Potter
This meetup I will be walking the audience through how to setup, configure and maintain distributed development workflows using Git (the distributed VCS developers either love or hate). Much of the workflows suggested here will be applicable to other dVCSes like Mercurial, Darcs and Bazaar.
Threats to mobile devices are more prevalent and increasing in scope and complexity. Users of mobile devices desire to take full advantage of the features
available on those devices, but many of the features provide convenience and capability but sacrifice security. This best practices guide outlines steps the users can take to better protect personal devices and information.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
GridMate - End to end testing is a critical piece to ensure quality and avoid...ThomasParaiso2
End to end testing is a critical piece to ensure quality and avoid regressions. In this session, we share our journey building an E2E testing pipeline for GridMate components (LWC and Aura) using Cypress, JSForce, FakerJS…
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
2. OAuth. . .
• sucks to configure
• but it is better than users
passing 3rd party apps their clear passwords
• 3rd party apps don’t need
to store passwords that are decryptable
3. OAuth. . .
• sucks to configure
• but it is better than users
passing 3rd party apps their clear passwords
• 3rd party apps don’t need
to store passwords that are decryptable
4. OAuth. . .
• sucks to configure
• but it is better than users
passing 3rd party apps their clear passwords
• 3rd party apps don’t need
to store passwords that are decryptable
5. In this screencast we will. . .
• set up a new Twitter app
https://twitter.com/apps/new
• configure consumer tokens
every app has a key and a secret; secret should be ’secret’
• getting access tokens for user
apps need to retrieve access tokens for each user
• use access tokens
store access tokens (key and secret) for each user
6. In this screencast we will. . .
• set up a new Twitter app
https://twitter.com/apps/new
• configure consumer tokens
every app has a key and a secret; secret should be ’secret’
• getting access tokens for user
apps need to retrieve access tokens for each user
• use access tokens
store access tokens (key and secret) for each user
7. In this screencast we will. . .
• set up a new Twitter app
https://twitter.com/apps/new
• configure consumer tokens
every app has a key and a secret; secret should be ’secret’
• getting access tokens for user
apps need to retrieve access tokens for each user
• use access tokens
store access tokens (key and secret) for each user
8. In this screencast we will. . .
• set up a new Twitter app
https://twitter.com/apps/new
• configure consumer tokens
every app has a key and a secret; secret should be ’secret’
• getting access tokens for user
apps need to retrieve access tokens for each user
• use access tokens
store access tokens (key and secret) for each user
9. Setting up a new Twitter app
• Go to twitter.com
• Login to your account
• Fill in form at twitter.com/apps/new
• Copy consumer tokens
10. Setting up a new Twitter app
• Go to twitter.com
• Login to your account
• Fill in form at twitter.com/apps/new
• Copy consumer tokens
11. Setting up a new Twitter app
• Go to twitter.com
• Login to your account
• Fill in form at twitter.com/apps/new
• Copy consumer tokens
12. Setting up a new Twitter app
• Go to twitter.com
• Login to your account
• Fill in form at twitter.com/apps/new
• Copy consumer tokens
13. Configuring consumer tokens
# In a Rails 2.3 / 3.x app this might be
# in: config/initializers/twitter4r.rb
Twitter Client.configure do |config|
config.oauth_consumer_token = CONSUMER_KEY
config.oauth_consumer_secret = CONSUMER_SECRET
end
14. Configuring consumer tokens
# In a Rails 2.3 / 3.x app this might be
# in: config/initializers/twitter4r.rb
Twitter Client.configure do |config|
config.oauth_consumer_token = CONSUMER_KEY
config.oauth_consumer_secret = CONSUMER_SECRET
end
15. Configuring consumer tokens
# In a Rails 2.3 / 3.x app this might be
# in: config/initializers/twitter4r.rb
Twitter Client.configure do |config|
config.oauth_consumer_token = CONSUMER_KEY
config.oauth_consumer_secret = CONSUMER_SECRET
end
16. Configuring consumer tokens
# In a Rails 2.3 / 3.x app this might be
# in: config/initializers/twitter4r.rb
Twitter Client.configure do |config|
config.oauth_consumer_token = CONSUMER_KEY
config.oauth_consumer_secret = CONSUMER_SECRET
end
17. Getting access tokens for a user, [1/2]
# Using OAuth Ruby gem library helper in:
# app/controller/application_controller.rb
def redirect_to_twitter
consumer = OAuth Consumer.new KEY, SECRET,
:site => “https://twitter.com”
token = consumer.get_request_token
redirect_to(token.authorize_url)
end
18. Getting access tokens for a user, [1/2]
# Using OAuth Ruby gem library helper in:
# app/controller/application_controller.rb
def redirect_to_twitter
consumer = OAuth Consumer.new KEY, SECRET,
:site => “https://twitter.com”
token = consumer.get_request_token
redirect_to(token.authorize_url)
end
19. Getting access tokens for a user, [1/2]
# Using OAuth Ruby gem library helper in:
# app/controller/application_controller.rb
def redirect_to_twitter
consumer = OAuth Consumer.new KEY, SECRET,
:site => “https://twitter.com”
token = consumer.get_request_token
redirect_to(token.authorize_url)
end
20. Getting access tokens for a user, [1/2]
# Using OAuth Ruby gem library helper in:
# app/controller/application_controller.rb
def redirect_to_twitter
consumer = OAuth Consumer.new KEY, SECRET,
:site => “https://twitter.com”
token = consumer.get_request_token
redirect_to(token.authorize_url)
end
21. Getting access tokens for a user, [2/2]
# Using OAuth Ruby gem library in:
# app/controller/oauth_controller.rb
def create
provider = params[:provider]
case provider
when ’twitter’
# bla bla bla
end
end
# Remember to add the routes:
match ’oauth/:provider/callback’ => ’oauth#create’
22. Getting access tokens for a user, [2/2]
# Using OAuth Ruby gem library in:
# app/controller/oauth_controller.rb
def create
provider = params[:provider]
case provider
when ’twitter’
# bla bla bla
end
end
# Remember to add the routes:
match ’oauth/:provider/callback’ => ’oauth#create’
23. Getting access tokens for a user, [2/2]
# Using OAuth Ruby gem library in:
# app/controller/oauth_controller.rb
def create
provider = params[:provider]
case provider
when ’twitter’
# bla bla bla
end
end
# Remember to add the routes:
match ’oauth/:provider/callback’ => ’oauth#create’
24. Using access tokens
# Pass in access key/secret tokens to
# Twitter Client.new call for each user
client = Twitter Client.new :oauth_access => {
:key => ACCESS_KEY,
:secret => ACCESS_SECRET }
client.status(:post, “Tweet from my OAuth-ed app”)
25. Using access tokens
# Pass in access key/secret tokens to
# Twitter Client.new call for each user
client = Twitter Client.new :oauth_access => {
:key => ACCESS_KEY,
:secret => ACCESS_SECRET }
client.status(:post, “Tweet from my OAuth-ed app”)
26. Using access tokens
# Pass in access key/secret tokens to
# Twitter Client.new call for each user
client = Twitter Client.new :oauth_access => {
:key => ACCESS_KEY,
:secret => ACCESS_SECRET }
client.status(:post, “Tweet from my OAuth-ed app”)
27. Fin
HTH, if you have more questions:
twitter4r-users@googlegroups.com
28. Fin
HTH, if you have more questions:
twitter4r-users@googlegroups.com