GithubHelp home page GithubHelp logo

500px-js-sdk's People

Contributors

tye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

500px-js-sdk's Issues

API Documentation

I was attempting to refer to the API Documentation for this library and the repo is not found. Any updates?

Can't log in on Android device with Ionic

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)
    })
  }
})

Cannot send post request to photos

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) {
}

How to use this API on Nodejs?

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?

Push-Notification

Is it possible to get the push-notifiction or the notification from an user that is loged-in?
Thx for help.

Missing keys from .bower.json and no bower.json file breaking automated build scripts

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

Requests using _method=post return 401 error

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?

Script response blocked due to MIME type mismatch

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)

Phonegap

Can't use Phonegap and 500px, because of, the login (window.top).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.