Giter Club home page Giter Club logo

limbo.umbraco.twentythree's Introduction

Limbo TwentyThree

GitHub license NuGet NuGet Umbraco Marketplace

Limbo.Umbraco.TwentyThree is a package for Umbraco 13 that features a property editor for inserting (via URL or embed code) a TwentyThree video. The property editor saves a bit of information about the video, which then will be availble in C#.

License: MIT License
Umbraco: Umbraco 13
Target Framework: .NET 8



Installation

The package is only available via NuGet. To install the package, you can use either .NET CLI:

dotnet add package Limbo.Umbraco.TwentyThree --version 13.0.0

or the NuGet Package Manager:

Install-Package Limbo.Umbraco.TwentyThree -Version 13.0.0

Umbraco 10, 11 and 12

For the Umbraco 10-12 version of this package, see the v2/main branch instead.



Dependencies



Configuration

In order to access the TwentyThree API, the package needs to be configured with a set of credentials, which should be added in your appSettings.json file like this:

{
  "Limbo": {
    "TwentyThree": {
      "Credentials": [
        {
          "Key": "00000000-0000-0000-0000-000000000000",
          "Name": "MyProject",
          "Description": "A description about the credentials.",
          "Domains": [ "The domain(s) of your account here." ],
          "ConsumerKey": "Your consumer key here.",
          "ConsumerSecret": "Your consumer secret here.",
          "AccessToken": "Your access token here.",
          "AccessTokenSecret": "Your access token secret here."
        }
      ]
    }
  }
}

Key should be a randomly generated GUID which will be used as a unique identifier for the credentials.

Name should be used to identify the credentials when shown in the UI.

Description is currently not used, but are meant to be shown in the UI to identify the credentials to the user.

Domains a string array with one or more domains associated with the TwentyThree account.

ConsumerKey an OAuth 1.0a consumer key obtained from the TwentyThree management portal.

ConsumerSecret an OAuth 1.0a consumer key obtained from the TwentyThree management portal.

AccessToken an OAuth 1.0a consumer key obtained from the TwentyThree management portal.

AccessTokenSecret an OAuth 1.0a consumer key obtained from the TwentyThree management portal.



Screenshots

image Example view of the property editor.

image Overlay for picking videos from the configured account(s).

limbo.umbraco.twentythree's People

Contributors

abjerner avatar

Watchers

 avatar  avatar  avatar  avatar

limbo.umbraco.twentythree's Issues

"The specified token for accessing this photo is invalid."

If an embed code is entered for a video the API user doesn't have access to, the API will respond with the following body:

{
  "status": "error", 
  "message":"The specified token for accessing this photo is invalid.",
  "code":"invalid_photo_token",
  "permission_level":"read",
  "endpoint": "/api/photo/list"
}

This happens even though a token is specified as part of the embed code. The token should ensure access to videos that the user would otherwise not have access to.

Cant get videos

Hi Anders and co!

Umbraco version: 13.2
Package version: 13.0.0

When trying to use this and press "Select video" im getting the following error. I also tried to recreate the application in twentythree backend and redo the credentials.

The logs show this:
Failed getting list of players from the TwentyThree API: "invalid_oauth_signature"

The same will appear if I try to select spot.

I do however realise that it might be me not setting it up correctly. So im open to all feedback aswell

Also in logs:
Skybrud.Social.TwentyThree.Exceptions.TwentyThreeHttpException: Invalid response received from the TwentyThree API (status: 200) at Skybrud.Social.TwentyThree.Responses.TwentyThreeResponse.ValidateResponse(IHttpResponse response, JObject& body) at Skybrud.Social.TwentyThree.Responses.Players.TwentyThreePlayerListResponse..ctor(IHttpResponse response) at Skybrud.Social.TwentyThree.Endpoints.TwentyThreePlayersEndpoint.GetList(TwentyThreeGetPlayersOptions options) at Limbo.Umbraco.TwentyThree.Controllers.TwentyThreeController.GetPlayers(Guid credentialsId)

image

Change album labels to categori

Albums is a term in the API, but they are referred to as Categories in TwentyThree's own UI. So the naming should reflect the Ui rather than the API.

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.