Comments (9)
Go ahead - pull requests welcome!
from external-videos.
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.
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.
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.
silvia -
dammit! :) How do I overwrite my fork with your current master from within the browser interface?
from external-videos.
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.
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.
OK a preliminary Vimeo API version is ready to test.
- 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.
- 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 :)
- 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.
Your patches landed and I will do a release today
from external-videos.
Related Issues (10)
- Overhaul is missing ability to remove channels HOT 1
- Add external video search back into "Insert Media" functionality HOT 1
- Fix selecting a post or page to attach a video to
- Make setting for wp_post_status preference when videos are pulled from services HOT 3
- Embed and fetch fixes HOT 19
- Update gallery functions in external-videos.php HOT 1
- Make admin columns sortable: "published", "host", "duration" HOT 1
- Return WP_admin_notice if API keys are missing for authors
- Move Options setup to new PHP Class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from external-videos.