Connect to twitter without app

rest
php
api

#1

hi
i want connect to twitter like twitter app in Windows store
this app use api 1.1
i want connect to twitter with username and password

->> without app parameter
like:
‘oauth_access_token’ => “YOUR_OAUTH_ACCESS_TOKEN”,
‘oauth_access_token_secret’ => “YOUR_OAUTH_ACCESS_TOKEN_SECRET”,
‘consumer_key’ => “YOUR_CONSUMER_KEY”,
‘consumer_secret’ => “YOUR_CONSUMER_SECRET”


#2

This is not possible, you have to create an App and use OAuth token and secret together with consumer key and secret or App-only auth with a bearer token.


#3


twitter app in pc work with username and password
without redirect to twitter website … without open popup frame for give permission

Twitter app for Windows How does it work?

sniff network -> when Twitter Windows app is running :
result:
`

GET https://api.twitter.com/1.1/users/show.json?user_id=335522973 HTTP/1.1
Accept-Encoding: gzip, deflate
X-Twitter-Client-Version: 4.3.4.0
X-Client-UUID: cf7937d7-39f0-4a42-bc92-6eac9262f1db
Accept: application/json
X-Twitter-Client: TwitterForWindows
User-Agent: TwitterForWindows/4.3.4.0
Accept-Language: en
Authorization: OAuth oauth_nonce="fd4e92615ef94e***eaf35c95e5", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1456055089", oauth_consumer_key="TgHNMa7WZ**JbkAMQ", oauth_signature="olsWxfuN1O%2FO***B0zKK0M%3D", oauth_version="1.0"
Host: api.twitter.com
Connection: Keep-Alive
Cookie: pid="v3:1456055075969059398092841"; guest_id=v1%3A145605507515823066
//----------------

POST https://api.twitter.com/1.1/push_destinations/create.json HTTP/1.1
Accept-Encoding: gzip, deflate
X-Twitter-Client-Version: 4.3.4.0
X-Client-UUID: cf7937d7-39f0-4a42-bc92-6eac9262f1db
Accept: application/json
X-Twitter-Client: TwitterForWindows
User-Agent: TwitterForWindows/4.3.4.0
Accept-Language: en
Authorization: OAuth oauth_nonce="fd4e92615ef94e***eaf35c95e5", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1456055089", oauth_consumer_key="TgHNMa7WZ**JbkAMQ", oauth_signature="olsWxfuN1O%2FO***B0zKK0M%3D", oauth_version="1.0"
Content-Length: 283
Content-Type: application/x-www-form-urlencoded
Host: api.twitter.com
Connection: Keep-Alive
Cache-Control: no-cache

`

i use this lib:

My main question is this:
Where i should insert my username and password?

The Windows software use consumer key
but use consumer key ,OAuth ,username and password together
Where should I give my username and password?
I can not find:
https://dev.twitter.com/rest/public


#4

The correct and only way to set up a Twitter connection is to use OAuth. You should never directly provide your username and password to any site or app other than Twitter, for security reasons.


#5

security not important for me…
my app is not public


#6

Sounds like the windows app uses xAuth https://dev.twitter.com/oauth/xauth which isn’t public, and only granted to approved apps.


#7

You’ll need to use OAuth as mentioned above. That provides a way for you to enter username and password when you authenticate directly with Twitter on the web.