Comments (7)
@diskzzokejs pamēģini te https://github.com/mstrengis/DraugiemSampleApp/
from draugiemapi.
Saite strādā, bet projektu nevar atvēt uz Android studio. Paldies par to pašu :)
from draugiemapi.
tas projekts ļoti sen nav atjaunots principā tapa laikā kad vēl nebija tāds
android studio :)
Tev interesē
https://github.com/mstrengis/DraugiemSampleApp/blob/master/src/com/example/draugiemsampleapp/MainActivity.java#L47
(47-80)
ja vajag arī maksājumus tad
https://github.com/mstrengis/DraugiemSampleApp/blob/master/src/com/example/draugiemsampleapp/MainActivity.java#L85
neaizmirsti onAcitvityResult
https://github.com/mstrengis/DraugiemSampleApp/blob/master/src/com/example/draugiemsampleapp/MainActivity.java#L226
On Mon, Jan 25, 2016 at 1:29 PM diskzzokejs [email protected]
wrote:
Saite strādā, bet projektu nevar atvēt uz Android studio. Paldies par to
pašu :)—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from draugiemapi.
Paldies par informāciju. Mēģināšu :)
from draugiemapi.
Viens jautājums:
Man metode: authorize atgriež onActivityResult-> (Intent data) = null
Kādus datus man jāsāņem?
Ja es pareizi saprotu, tad pēc plikas autorizēšanās man jāsaņem lietotāja apikey ar kuras palīdzību es varu dabūt visu info, caur jaunu izsaukumu uz DR API?
public void authorize(AuthCallback callback){
this.mAuthCallback = callback;
try{
Intent draugiemIntent = new Intent("com.draugiem.lv.AUTHORIZE");
draugiemIntent.putExtra("app", RLinks.DRAUGIEM_AUTH_APP_KEY);
draugiemIntent.putExtra("fingerprint", mAppHash);
mContext.startActivityForResult(draugiemIntent, AUTHORIZE);
}catch(Exception e){
mAuthCallback.onNoApp();
}
}
from draugiemapi.
@OverRide
public void onLogin(User u, String apikey) {
//visam vajadzētu būt šeit
}
visticamāk Tev nostrādā onError, ja tā tad atsūti savu fingerprintu un linku savai draugiem.lv applikācijai uz [email protected] kamēr mēs šo neesam sakārtojuši caur web interfeisu
Savu fingerprintu vari iegūt šādi:
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
iegūsi kaut ko līdzīgu šim: IAZ/aZL4KqB41xehZMPJf3I0GBI=.
Parasti viņi būs divi: viens debug sertifikātam, otrs produkcijai.
from draugiemapi.
Nosūtīju uz @
from draugiemapi.
Related Issues (2)
- Android API / sample app HOT 5
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 draugiemapi.