Giter VIP home page Giter VIP logo

Comments (9)

silviapfeiffer avatar silviapfeiffer commented on July 18, 2024

Go ahead - pull requests welcome!

from external-videos.

nimmolo avatar nimmolo commented on July 18, 2024

Thanks Silvia. Quick question - reading thru Vimeo API docs now. Terminology is a bit different...
Do their "Client ID" and "Client Secret" correspond to developer_key and secret_key in the plugin settings, respectively?

from external-videos.

silviapfeiffer avatar silviapfeiffer commented on July 18, 2024

Yes. Note that there's an old vimeo_library.php file in the repo which you will want to replace with a new library from vimeo.

from external-videos.

nimmolo avatar nimmolo commented on July 18, 2024

Thanks - working with the new library now. Going through all the parameters to be sure the API call is getting the right ingredients - some things have definitely changed. For example there's no function "call" anymore...

from external-videos.

nimmolo avatar nimmolo commented on July 18, 2024

silvia -
dammit! :) How do I overwrite my fork with your current master from within the browser interface?

from external-videos.

silviapfeiffer avatar silviapfeiffer commented on July 18, 2024

What are you trying to do? You might need command line git commands... but it sounds to me like you created a fork and want to undo some commits?

from external-videos.

nimmolo avatar nimmolo commented on July 18, 2024

oh - i had forked from version 0.25 a few months ago, and since then you merged my pull request. For this new fork i just wanted to start from your current version.

What i did just now is delete my repository and reclone from your master. But in the future I'd like to know how to keep my clone up to date, so i'm not constantly deleting it

from external-videos.

nimmolo avatar nimmolo commented on July 18, 2024

OK a preliminary Vimeo API version is ready to test.

  1. This version only makes authenticated calls to Vimeo, so the author data now requires an additional predefined auth token allowing the user to embed their own videos on their own site. (If people use your plugin to embed other people's videos on their sites, it may be desirable to have the option to do unauthenticated calls - see here.) Anyway for now, any existing Vimeo author data must be deleted and re-entered - currently there's no way to edit an existing author's secret keys. The new field necessary is called a Personal access token, in addition to the Client ID and Client secret. I guess the plugin should check if the "Personal access token" exists for any existing Vimeo author, and throw an alert message if author data needs to be re-entered, but i haven't written that in.
  2. The vimeo library in the plugin is modified from the stock library. The new Vimeo php library unfortunately does not form some parts of its own requests properly, i've got an issue open with them on github. The issue: GET requests can return a huge amount of data for a huge number of videos. Vimeo recommends filtering the results, so the request only returns the fields we need. Theoretically the fields desired should be passed as a request parameter (a comma-separated string, or possibly a nested array), but whether you pass a string or an array, the parameter gets encoded incorrectly and the desired fields are not returned. I have hacked the library to simply append a correctly-formatted string of desired fields to the request after encoding, and the request works. If Vimeo repair their library i should probably un-hack ours :)
  3. My client requested that the source and author attribution that the plugin automatically adds to post_content be optional, so i've made a setting option for this.

from external-videos.

silviapfeiffer avatar silviapfeiffer commented on July 18, 2024

Your patches landed and I will do a release today

from external-videos.

Related Issues (10)

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.