500px / 500px-js-sdk Goto Github PK
View Code? Open in Web Editor NEW500px JavaScript SDK
500px JavaScript SDK
I was attempting to refer to the API Documentation for this library and the repo is not found. Any updates?
I'm using Ionic framework to build my android app. When I try to log in via my web browser, that works fine. But when I try to log in via my Android device, it still in loading mode, and doesn't show any web page from 500px domain to log me in and authorize the application.
myApp.controller('LoginCtrl', function ($scope, $ionicLoading) {
$scope.login = function () {
$ionicLoading.show()
_500px.init({sdk_key: 'xxxx'})
_500px.login(function (res) {
$ionicLoading.hide()
console.log(res)
})
}
})
I need to send a post request to photos but I cannot sent it. It gives me a 500 internal server error.
This is the request that is being sent :- https://api.500px.com/v1/photos.jsonp?name=AnduGundu&description=Hululu&category=Hehahaha&_method=post&oauth_token=*****************************&sdk_key=****************************&callback=_500pxCallback88696228
The oauth token the sdk key everything is set perfectly. I get a response 500 error and cant go ahead with it. Could you help me with this? It works for others like posting comments or voting different people even following people but this is giving me some problems.
The API call I am making is something like this :-
param = {};
param.name = 'AnduGundu';
param.description = 'Hululu';
param.category = 'Hehahaha';
_500px.api('/photos', 'post', param, function(response) {
}
In this sdk, it depends on iframe to communication with server and open callback.html
, in a node environment, this is no frame
to open some html file.
It's mean that I need a few of picture, I should use a web crawler?
Is it possible to get the push-notifiction or the notification from an user that is loged-in?
Thx for help.
Bower standards recommend main and ignore key for proper inclusion in automated build scripts.
As it is, this bower component does not integrate into my project due to these missing keys.
It also gives me a warning when installing via bower.
bower 500px#* invalid-meta 500px is missing "main" entry in bower.json
bower 500px#* invalid-meta 500px is missing "ignore" entry in bower.json
I'm having no problem when using _method=get to return a photo feed for an authenticated user, but using post to add a vote isn't working with the following code:
_500px.api('/photos/22168277/vote', 'post', { vote: '1' }, function (response) { });
Are there specific permissions that need to be requested during authentication?
The call to "/users/17211083/galleries/22943929/items" returns successfully, but adding options like image_size (e.g. "/users/17211083/galleries/22943929/items?image_size=4") will give me
SEC7112: Script from https://api.500px.com/v1/users/17211083/galleries/22943929/items?image_size=4.jsonp?_method=get&sdk_key=b21f5981983b2e4c118beb296a534f4a070f8dd3&callback=_500pxCallback28421498 was blocked due to mime type mismatch
Searching on SO I found related issues that mention the X-Content-Type-Options: nosniff
and no MIME types.
From the Edge docs:
SEC7112
"Script from [URL] was blocked due to mime type mismatch"The HTTP response header for the JavaScript file specified by the URL has an "X-Content-Type-Options: nosniff" header, and didn't have a recognized content type declaration.
Update the server to send the correct content type for the JavaScript file (such as text/javascript, application/javascript", and so on) in theHTTP response header. See MIME-Handling Changes in Internet Explorer for more info and a full list of content types.
(I'm testing on Edge, not IE9)
Can't use Phonegap and 500px, because of, the login (window.top).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.