WebBrowser.openAuthSessionAsync has a token in result? - react-native

Does anyone has any idea on how to get the token from
WebBrowser.openAuthSessionAsync(url, redirectUrl) result? or how to get the parameter data of it.
Thank you so much in advance.

Related

Fishbase-API get-query

I would like to use the Fishbase-API in my app.
https://fishbase.ropensci.org/
here is the README for the API...
https://fishbaseapi.readme.io/reference/getting-started
But I don't know how to create a correct query to search for certain “common names” (comnames) and get a list of results?
Thanks a lot!

How to pass dynamic values to a GET API request?

The following GET request passes
#GET("api/v1/shades/colors?color=bl")
Call<List<Colors>> getColors();
but the following GET request fails.
#GET("api/v1/shades/colors?color={colorId}")
Call<List<Colors>> getColors(#Path(StringConstants.COLOR_ID) String colorId);
What's the right way to pass a dynamic value to a GET request?
Thank you!
It seems like you are using JaxRS web application. You should use this :
#GET("api/v1/shades/colors")
Call<List<Colors>> getColors(#Query("color") String colorId);
Check this: https://docs.oracle.com/javaee/6/tutorial/doc/gilik.html and this: https://mkyong.com/webservices/jax-rs/jax-rs-queryparam-example/.
Hope it helps !
Use annotation #RequestParam:
#GET("api/v1/shades/colors")
Call<List<Colors>> getColors(#RequestParam String colorId);

using "Payload" as a Map index

I'm getting crazy whith this, and I'll appreciate any help....
Is there any way to use the value of payload as a map index?.
something like this:
<logger message = "the value is #[flowVars.MyMap['#[payload]'] doc:name="Logger""/>
Thanks in advance
alf.
Use: #[flowVars.MyMap[payload]]

Flickr api_sig (api signature)

pls help me with calculating api_sig. I have working URL request from here (www.flickr.com/services/api/explore/flickr.photosets.getP...).
I'm trying recalculate api_sig by myself. I'm generating md5 hash from this string:
"api_key071da8bd47cc06715f12e139
auth_token7215764931-65136290ea10d4b6
formatrest
methodflickr.photosets.getPhotosphoto
set_id7215924989144"
I don't know what should i use like [secret code]. Is it secret API key or is it "secret" from photoset? Or is it something else?
My string for md5 hash is:
"[secret]
api_key071da63edd47cc06715f12e139
auth_token757925931-65136290ea10d4b6
formatrestmethodflickr.photosets.getPhotos
photoset_id721746989144"
What am I doing wrong? I am getting different hash.
Thank you in advance for your advice and please excuse my English.
You should remove the whitespaces from the string i.e. you should just generate a md5-string from this: "api_key071da8bd47cc06715f12e139auth_token7215764931-65136290ea10d4b6formatrestmethodflickr.photosets.getPhotosphotoset_id7215924989144". And then use that as the api_sig parameter.
Here are the steps: https://www.flickr.com/services/api/auth.spec.html#signing

Trello API get card comments

is there a way to get all the comments of a card through the Trello API? I can get the card, the list which it is in, the members assigned to it etc. but can't see a way to get the comments.
Thanks.
Comments are a type of action ("commentCard"), so look into the /card/:id/actions
Try this API URL
Method: GET
https://api.trello.com/1/cards/{card_Id}/actions?filter=commentCard&key={trellokey}&token={trellotoken}
GET /1/cards/[card id or shortlink]/actions
you'll get list of action-objects in json, each has its type, type for comment "commentCard",
comment text in
object.data.text
https://trello.com/docs/api/card/index.html#get-1-cards-card-id-or-shortlink-actions
Trello.actions.get(action.id + "/data", function() {})
seems to do it for me with client.js. Hope that helps :)