+1
Respuestas
Twitter Authentication
How do you use the new twitter authentication that's integrated with iOS and handle multiple twitter accounts?
Servicio de atención al cliente por UserEcho
http://content.rarewire.com/wordpress...
At this time, it will only auto select the twitter account at the top of the list within iOS settings. This will be enhanced in the future.
<wire>
<datasources>
<!-- datasources go here -->
<datasource name="twitter-login" source="https://api.twitter.com/1.1/account/verify_credentials.json" query="" onquerycomplete="ActionLogin" providertype="twitter"/>
</datasources>
<main>
<panel name="panel2" width="100%" height="100%" background="ffffff" cornerradius="10" datasource="twitter-login">
<text name="label" width="95%" height="30" alignment="left" align="center" valign="center" font="helvetica" size="50" color="#000000" text="@[param:screen_name]"/>
</panel>
</main>
<actions>
<!-- actions go here -->
<action name="ActionLogin">
<alert message="tried login "/>
</action>
</actions>
</wire>
<action name="ActionLogin" datasource="twitter-login" datasourceevent="onquerycomplete">
<alert message="tried login "/>
</action>
Does that make sense?
Also you twitter datasource prob needs Oauth info if you want to use the 1.1 API.
Changed from query="" to query="/" and it works.