App42 API Unity SDK: getTinyUrl() return null when using File Upload Service - unity3d

I'm using the App42 Unity SDK for uploading binary files; it used to work just fine, but now I've started to get "null" when retrieving the tiny url by calling fileList[i].GetTinyUrl(); (just as a documentation shows). The file is uploaded succesfully and only the tiny URL seems to be broken. The regular URL is too long for using in App42 private messages, so it is a blocking issue.
Any ideas?

Sometimes when tiny url service is not available, it might return null, however you can convert it by your own by calling tiny url service from your app.See this tutorial for the same http://www.codeforest.net/how-to-shorten-url-using-tinyurl-service

Related

File Upload: File Upload URL not provided

I've been trying to get file uploads to work, following the instructions for both Dropbox and S3 but each time I just get this message:
File Upload URL not provided
It doesn't seem to be making any calls to the server. I've found this mention of a bug around file uploads:
https://github.com/formio/ngFormio/issues/322
But I suspect that applies if you're hosting it yourself. I'm using the cloud version.
I've configured it with e.g. the S3 bucket's URL, authentication etc.
What does this error actually mean?
Update: here's the syntax I'm using:
<formio form="https://formview.io/#/xxxxxxxxxxxxxxxxxxx/applicationform" url="'https://formview.io/#/xxxxxxxxxxxxxxxxxxx/applicationform'"></formio>
Thanks
In order to make the uploads work, you need to provide the URL of your form, which is used to generate the upload token to upload the files to the 3rd party providers. This can be done in one of two ways.
<formio src="'https://examples.form.io/example'"></formio>
You would use above if you wish to render the form from the JSON REST API of the form. In many cases, you may wish to provide the actual form object (which I suspect is what you are doing) like so.
<formio form="{...}"></formio>
This works fine for rendering the form, but it does not provide the URL context for file uploads. For this reason, we have the url parameter which you can include along with your form object for file uploads to work.
<formio form="{...}" url="'https://examples.form.io/example'"></formio>
Providing the url this way is passive. The form will not try to submit to that url, but rather just use it as the url configuration for file uploads.

Downloading files from google drive with rest API / c++

I have files in my google drive , very small ones, <10kB, and I try to download those by using downloadUrl , but the result only seems to be redirection to happen all the time. I have seen also discussions about that but no actual results ..
I am using c++ and creating rest API request by myself ( not using any libraries for this )
But also , when I copy the url I receive after continue="..." web browser can make a download okay but calling that from C++ seems to cause just another redirection to happen .
I followed the instructions from:
https://developers.google.com/drive/web/manage-downloads
This is probably a duplicate of Unable to retrieve file content from google drive API which states that the access token for downloading content needs to be set as an HTTP header.

Suddenly Facebook API stopped working on Windows Phone

My code hasn't changed, it was working yesterday or so.
I can oauth, get the token but then doing the following:
WebClient wc = new WebClient();
wc.DownloadStringCompleted += result;
wc.DownloadStringAsync(new Uri("https://graph.facebook.com/me&access_token=xxxTOKENxxx", UriKind.Absolute));
Returns a NotFound WebClient exception: "The remote server returned an error: NotFound."
Strange thing is that when pasting that same url on Chrome or IE it does work(PC).
Tried on Emulator and on 2 different real WP devices, even pasting the same url on the WP browser.
Feels like facebook is rejecting Windows Phone for some reason?
Anyone has an idea of what might be happening?
look like there is a bug on Facebook being tracked
click here if you want to follow
https://developers.facebook.com/bugs/367369176650486?browse=search_4fd82eadc62186861827790
after reading the link someone says graph.beta.facebook.com does work instead of graph.facebook.com
I can confirm its not you. WP7 sample from the SDK from GitHub is failing. ASP.NET sample is now returning an "Error occured in . Please try again later." error. As you noted, copying and pasting the URL into IE resolves and returned the expected JSON. Clearly something has changed.

can't convert Pathname into String when using Facebook api in Rails

we are trying to build a facebook app using ruby on rails.
We setup a canvas app and are able to see our app through the canvas, but when we try to integrate the ruby facebook api we get a 'can't convert Pathname into String' error whenever we try to make a request for user data.
We have tried 2 different api's so far (koala and rest-graph) and had the same result.
I even downloaded a working project from koala api sample project
and got the same error. I'm not sure if it is a rails error or because we are trying to run this using rails s localhost:3000
I had a previous ssl error and had to add this code under config/initializers to fix that
require 'open-uri'
require 'net/https'
module Net
class HTTP
alias_method :original_use_ssl=, :use_ssl=
def use_ssl=(flag)
self.ca_file = Rails.root.join('lib/ca-bundle.crt')
self.verify_mode = OpenSSL::SSL::VERIFY_PEER
self.original_use_ssl = flag
end
end
end
The problem is that
self.ca_file
expects a String, while you are sending it a pathname.
replace:
Rails.root.join('lib/ca-bundle.crt')
with:
Rails.root.join('lib/ca-bundle.crt').to_s
and it should work

Facebook old API Video upload

Our application uploads video to facebook (using the REST API video.upload method). Everything was working fine, but nearly 10 hours ago we started to receive the error "This method must run on api-video.facebook.com". We're already running it on api-video.facebook.com! The url is http://api-video.facebook.com/restserver.php?method=video.upload, it's hardcoded in the application, and never changed. What's happening? How can this be fixed?
Since Facebook doesn't seem to want to document this:
the call is to https://api-video.facebook.com/restserver.php
params:
access_token=...
method=video.upload
The rest of the params work as before.