Set visibility of dropbox files/folders as public or private using api php - dropbox-api

I am trying to implement dropbox apis using php in my website for sharing. Using shares() I am able to get share link for a folder/file but visibility is always "PUBLIC". Is there any method/api to set the visibility? Thanks

No, the Dropbox API doesn't currently expose a way to set the visibility of shared links. We're tracking this as a feature request though.

Related

Should I create a GitHub App or GitHub OAuth App?

I am trying to create a website that will allow users to authorize their GitHub account and it will then allow the user to click a create button. Which automatically creates a new repo with some files. Now I am confused about should I make a GitHub app or OAuth app for the same.
I have looked into the documentation but still confused..
I will host the website and this will allow any random user with an GitHub account.. What will be the best choice?
From Github documentation:
GitHub Apps are the officially recommended way to integrate with
GitHub because they offer much more granular permissions to access
data, but GitHub supports both OAuth Apps and GitHub Apps.
They are also providing a simple flow chart that can make your decision easier.
Bottom line - unless you need an access to everything, you should use GitHub App

Instagram API Usage

I'm currently working on a project where I'm "tracking" down public instagram users' statics.
But I'm encountering an issue, I'm able to get my own profile but not other's profile, even if their profile is public.
On my Facebook developer's app I don't have the authorizations to use their API (basic / graph profile), but to fill the form I need to show to Facebook how I'm using it on my website, but everything is currently backend, and I can't work on a frontend page if I can't test my api on other profile.
What am I supposed to do ?
PS: I don't mind the language, if it's functional I will adapt it to my system's language.
Best regards :)
I don't think you will get API approval for such purpose (but who knows..) so your best bet might be unofficial API wrappers from github.

Can I access the active version on SAP Cloud Platform of HTML5 apps through a api?

I need to access the active version on SAP Cloud Platform of HTML5 apps through an api.
I know for the java apps you have the lifecycle api: doc
But you can't access HTML5 information with this API.
What I found is this service: https://account.hana.ondemand.com/ajax/getHtml5AppDetails/{subaccountName}/{appName}
This will return a JSON string with the required info, but I'm not authorized to access this page, although I have all the possible admin rights.
So I'm wondering If any of you has any idea to solve my issue, and other people's issues.
Well, we needed something similar and used this kinda hack to get the active versions via WebIde Api (need basic Auth to login) replace XXXX with your account
https://webide-XXXX.dispatcher.hana.ondemand.com/api/html5api/accounts/XXXXX/applications
You get back a json array with all your applications of that sub account, including active version and other interesting information
Hope it helps ;))
Regards Mathias
You could create a HTTP Proxy Servlet based on https://github.com/SAP/cloud-connectivityproxy that provides read only access to https://dispatcher.hanatrial.ondemand.com/hcproxy/b/api/accounts/<subaccount>/applications/<app> for your app.

Is Google plus API still read-only?

I see everywhere that google plus api is readonly. But i saw this app screenshot.
How did they do then? Even the docs say its read only.
The API is indeed still read-only. We worked directly with SXSW on this year's mobile app to enable sharing... it's not a feature that is generally available at this time.
The note at the top of the REST API documentation page seems to answer both questions at once:
Note: The Google+ API currently provides read-only access to public
data. All API calls require either an OAuth 2.0 token or an API key.

is there a way to create a FB app for a single page?

I want to create a FB app for a client's Facebook Page. How do I do this without allowing other pages accessing it as well? Obviously I can do an ID check in my code, but I presume there's a 'proper' way of denying access to all and sundry?
There isn't a way to make an application private as in you're the only person that can install it but you could look into using the Static FBML box, you can have FBJS, FBML, CSS and HTML incorporated into that box and you'll be the only one able to use it.