Fork me on GitHub

Jribbble

A jQuery plugin for
fetching shots from
the Dribbble API

Download Jribbble

Current release: v1.0.1

Interested in a jQuery-free version?

Get a shot

$.jribbble.getShotById(shotId, callback)

  • Parameter/Type

    Description

  • shotId INT

    The ID of the shot you're looking for.

  • callback FUNCTION

    Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).


    Get the Comments of a Shot

    $.jribbble.getCommentsOfShot(shotId, callback, [pagingOpts])

    • Parameter/Type

      Description

    • shotId INT

      The ID of the shot you want comments.

    • callback FUNCTION

      Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

    • pagingOpts OPTIONAL OBJECT

      Example: {page: 1, per_page: 15}


      Get the Rebounds of a Shot

      $.jribbble.getReboundsOfShot(shotId, callback, [pagingOpts])

      • Parameter/Type

        Description

      • shotId INT

        The ID of the shot you want rebounds.

      • callback FUNCTION

        Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

      • pagingOpts OPTIONAL OBJECT

        Example: {page: 1, per_page: 15}


        Get a List of Shots by the List Name

        $.jribbble.getShotsByList(listName, callback, [pagingOpts])

        • Parameter/Type

          Description

        • listName STRING

          Can be one of: "popular", "everyone", "debuts"

        • callback FUNCTION

          Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

        • pagingOpts OPTIONAL OBJECT

          Example: {page: 1, per_page: 15}


          Get a List of a Player's Shots

          $.jribbble.getShotsByPlayerId(playerId, callback, [pagingOpts])

          • Parameter/Type

            Description

          • playerId STRING or INT

            Example 'username' or 9999

          • callback FUNCTION

            Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

          • pagingOpts OPTIONAL OBJECT

            Example: {page: 1, per_page: 15}


            Get a List of Shots a Player is Following

            $.jribbble.getShotsThatPlayerFollows(playerId, callback, [pagingOpts])

            • Parameter/Type

              Description

            • playerId STRING or INT

              Example 'username' or 9999

            • callback FUNCTION

              Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

            • pagingOpts OPTIONAL OBJECT

              Example: {page: 1, per_page: 15}


              Get a List of Shots a Player Likes

              $.jribbble.getShotsThatPlayerLikes(playerId, callback, [pagingOpts])

              • Parameter/Type

                Description

              • playerId STRING or INT

                Example 'username' or 9999

              • callback FUNCTION

                Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

              • pagingOpts OPTIONAL OBJECT

                Example: {page: 1, per_page: 15}


                Get the Profile Details of a Player

                $.jribbble.getPlayerById(playerId, callback)

                • Parameter/Type

                  Description

                • playerId STRING or INT

                  Example 'username' or 9999

                • callback FUNCTION

                  Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).


                Get the Followers of a Player

                $.jribbble.getPlayerFollowers(playerId, callback, [pagingOpts])

                • Parameter/Type

                  Description

                • playerId STRING or INT

                  Example 'username' or 9999

                • callback FUNCTION

                  Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

                • pagingOpts OPTIONAL OBJECT

                  Example: {page: 1, per_page: 15}


                  Get the Players a Player is Following

                  $.jribbble.getPlayerFollowing(playerId, callback, [pagingOpts])

                  • Parameter/Type

                    Description

                  • playerId STRING or INT

                    Example 'username' or 9999

                  • callback FUNCTION

                    Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

                  • pagingOpts OPTIONAL OBJECT

                    Example: {page: 1, per_page: 15}


                    Get the Draftees of a Player

                    $.jribbble.getPlayerDraftees(playerId, callback, [pagingOpts])

                    • Parameter/Type

                      Description

                    • playerId STRING or INT

                      Example 'username' or 9999

                    • callback FUNCTION

                      Function to call once the request has completed successfully. One parameter will be passed containing the contents of the request; callback(data).

                    • pagingOpts OPTIONAL OBJECT

                      Example: {page: 1, per_page: 15}