Comments (5)
Configuration for proxy server is not available at the moment, but it seems the http client which extwitter is using (erlang-oauth / httpc) has some options to specify proxy.
Maybe it can be exposed as config setting, though I need some investigations (and trial).
What kind of parameters you would expect? The config settings like the following make sense?
use Mix.Config
config :extwitter, :proxy, [
server: "www-proxy.mycompany.com",
port: 8000,
user: "user",
password: "password"
]
Note:
- https://github.com/tim/erlang-oauth/
- http://erlang.org/doc/man/httpc.html
- http://erlang.org/doc/apps/inets/http_client.html
from extwitter.
I just noticed that erlang-oauth
is not exposing httpc options for user
and password
setting, though server
and port
can be separately configured.
It might need to update erlang-oauth
for authentication part (will check some more).
from extwitter.
I'm making a trial to implement the proxy setting. It would be great if you could try.
In config/config.exs
,
use Mix.Config
config :extwitter, :proxy, [
server: "www-proxy.mycompany.com",
port: 8000,
user: "user",
password: "password"
]
and in mix.exs
,
defp deps do
[
{:oauth, github: "parroty/erlang-oauth", branch: "proxy"},
{:extwitter, github: "parroty/extwitter", branch: "proxy"}
]
end
from extwitter.
I've merged to master and closing at the moment (with pending fork of erlang-oauth). If there's remaining issues, please reopen or open another one.
from extwitter.
Many thanks
from extwitter.
Related Issues (20)
- Twitter Streaming API can return multiple portions of tweets in a given chunk HOT 4
- Poison.decode with `keys: :atoms` is unsafe
- search_next_results does not pass on certain opts
- The max_id on the search_metadata is incorrect HOT 1
- Docs do not generate on Elixir 1.8.x HOT 2
- Streaming specs fail on Elixir 1.8.x HOT 1
- Direct Messages no longer working
- How do we get the URL of a tweet after using ExTwitter.update/1? HOT 1
- Replace Poison with Jason HOT 2
- Email field missing from ExTwitter.Model.User HOT 1
- Add LICENSE file HOT 2
- New API 2 paths does not work with request function HOT 3
- Jason.DecodeError occurs for deleted Tweets HOT 4
- Where is full_text / extended_tweet? HOT 2
- Runtime error in OTP 24 HOT 2
- Compilation fails with elixir 1.14 HOT 2
- Twitter api closes down multiple old endpoints at October 31, 2022
- How to call "/users/me"?
- How to get user's last N tweets?
- SSL error on OTP 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extwitter.