enter image description here I need to refer download url, so it can show at my realtime database, but now my firebase storage did not show download url, it only show access token(when we click the access token it will copy download url, but it cannot show out download url).
So how to change the access token to download url?
You have to write code in your app to get a download URL. It doesn't appear in the console.
Related
I'd like to use Google Cloud Storage as image saver. I added "allUsers" on the rights.
I referred this page.
https://cloud.google.com/storage/docs/access-control/making-data-public
I can access the image from any account of logged in on google. But when I logout from google. I can't see the image. When I click the image of link, it's redirect to google login page.
Is it possible to access to the image without login?
ex: https://storage.cloud.google.com/image_maker_media/layout/square.png
Yes. Link to publicly readable objects using one of these:
https://storage.googleapis.com/BUCKET_NAME/object_name
https://BUCKET_NAME.storage.googleapis.com/object_name
For example, your resource: http://storage.googleapis.com/image_maker_media/layout/square.png
When a user signup with facebook in an app, the user profile information can be stored on the client side. What should be the strategy to refresh this?
with example flow like below.
User sign-up with facebook from client
Facebook returns user profile ( on successful user accept), token
client stores the user profile including profile picture url
client uses the url to show user image in client
user changes profile facebook profile image and deletes old image -> client doesn't get to know about
Given that the token may be still valid, what should be the strategy for the client to make sure the user profile picture url is current ?
To keep the user photo current, link to https://graph.facebook.com/{userid}/picture wherever you would be linking to the image url in the client.
[The /picture edge returns an image by default](https://developers.facebook.com/docs/graph-api/reference/user/picture/]
If you want to know specifically when the user has a new profile photo, periodically check the url of the most recent photo you have against the url field returned by https://graph.facebook.com/{userid}/picture with redirect=false. If the urls differ, the user has changed their photo.
This is first time I use onedrive API.
I want to create application that need using onedrive service.
When I want to create application Onedrive only give me APP_CLIENT_ID and APP_CLIENT_SECRET.
Then to get access token and access token secret we have to use call back URL.
They will give me URL then I have to paste in the browser then press allow.
after that I'll get URL return, and then now I have access.
My question is, is there any way that I can get access token and access token secret directly like on Twitter?.
When I want to create application on Twitter, I can generate access token and access token secret, so I dont need to paste the url then press allow and etc.
Thanks
When you request the scopes for you application you can include "wl.offline_access", which will return a refresh token which you application can use to generate a new refresh token.
See more details in the authentication section from the OneDrive Development site:
https://dev.onedrive.com/auth/msa_oauth.htm#step-3-get-a-new-access-token-or-refresh-token
I am new to Rest API and trying to develop a client for ArcGIS Online. I tried to login to ArcGIS.com using my login credentials and then see the maps that I have posted on the server. When I click on any map, it opens up in browser with a url like this.
https://services.arcgis.com/N2SwjtBNabcd069C/arcgis/rest/services/IMap/FeatureServer/1
Then I created a different login account, and then published map and tried to open that in browser it showed up with a different url like this
https://services2.arcgis.com/N2SwjtBNabcd069C/arcgis/rest/services/IMap/FeatureServer/1
Note the start of the url
first one is
https://services.arcgis.com/
and second is
https://services2.arcgis.com/
Now my problem is when I try to login in my client application that I am developing. I am able to generate the token, account id and account name. But how do I know which server should I search for to locate my layers(i.e. services2.arcgis.com or services.arcgis.com)? Where can I get this information from
P.S: N2SwjtBNabcd069C in above url is the account id
After you login, and generates your token you can make the following query to see the url of your content.
http://www.arcgis.com/sharing/content/users/<username>?f=json&token=<generatedToken >
This will return you the json that contains the url of your service.
I'm trying to test out uploading photos to an album using Facebook API. I am currently testing using Localhost and am trying to figure out how I can provide an appropriate url for the post to the Facebook servers. I have uploaded an image to a tmp folder in my application and have a path for that but is there anyway I can, from this path, create a url that would be appropriate for the image parameter in the query string post to Facebook when I'm using Localhost?
You cannot send a localhost url as an image parameter to Facebook.
If you want to test your code, upload your application to an actual server somewhere which can be accessed over Internet. and then generate a URL and send to to Facebook.
Hope that helps