All Projects → line → Line Liff Starter

line / Line Liff Starter

Licence: mit
This is a small web application that demonstrates the basic functionality of the LINE Front-end Framework (LIFF).

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Line Liff Starter

Line
May the LINE be with you...
Stars: ✭ 786 (+509.3%)
Mutual labels:  line
Node Line Messaging Api
Unofficial SDK for LINE Messaging API 🤖 💬
Stars: ✭ 41 (-68.22%)
Mutual labels:  line
Gql
Very simple CLI for many GraphQL schemas in the cloud. Provides autocompletion for GraphQL queries
Stars: ✭ 101 (-21.71%)
Mutual labels:  line
Lining.js
An easy to use javascript plugin offers you complete DOWN-TO-THE-LINE control for radical web typography.
Stars: ✭ 907 (+603.1%)
Mutual labels:  line
Shapesinopengles2.0
Create basic shapes in opnegles2. And for abstraction purpose, its a class implementation using VBO's to create basic shapes in Open GLES2.0
Stars: ✭ 20 (-84.5%)
Mutual labels:  line
Maker.js
📐⚙ 2D vector line drawing and shape modeling for CNC and laser cutters.
Stars: ✭ 1,185 (+818.6%)
Mutual labels:  line
Integrations
Connect your App to Multiple Messaging Channels with the W3C Open standard.
Stars: ✭ 721 (+458.91%)
Mutual labels:  line
Leader Line
Draw a leader line in your web page.
Stars: ✭ 1,872 (+1351.16%)
Mutual labels:  line
Caroline
A simple Cairo Chart Library for GTK and Vala
Stars: ✭ 41 (-68.22%)
Mutual labels:  line
Magane
Bringing LINE's sticker to Discord in a chaotic way.
Stars: ✭ 81 (-37.21%)
Mutual labels:  line
Python
Python cheatsheet
Stars: ✭ 25 (-80.62%)
Mutual labels:  line
Lita Line
A Line adapter for Lita
Stars: ✭ 15 (-88.37%)
Mutual labels:  line
Line Bot Sdk Python
LINE Messaging API SDK for Python
Stars: ✭ 1,198 (+828.68%)
Mutual labels:  line
Torpedo
Pluggable, multi-network asynchronous chat bot written in Go
Stars: ✭ 19 (-85.27%)
Mutual labels:  line
Linesimulator
LINESimulator
Stars: ✭ 103 (-20.16%)
Mutual labels:  line
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+463.57%)
Mutual labels:  line
Line Bot Sdk Perl
LINE Messaging API SDK for Perl
Stars: ✭ 69 (-46.51%)
Mutual labels:  line
Bash Argsparse
An high level argument parsing library for bash
Stars: ✭ 128 (-0.78%)
Mutual labels:  line
Three.meshline
Mesh replacement for THREE.Line
Stars: ✭ 1,644 (+1174.42%)
Mutual labels:  line
React Native Line
Line SDK wrapper for React Native 🚀
Stars: ✭ 80 (-37.98%)
Mutual labels:  line

LIFF Starter App

This is a small web application that demonstrates the basic functionality of the LINE Front-end Framework (LIFF).

Prerequisites

Deploying the application

Deploy

  1. Click the above "Deploy to Heroku button".
  2. Fill in the required information on the "Create a New App" page in Heroku.
  3. Select Deploy app and confirm that your app is successfully deployed.
  4. Record the app URL (https://{Heroku app name}.herokuapp.com). You will set this URL when you add the app to LIFF.

Adding the starter app to LIFF

Add the app to LIFF. For more information, see Adding a LIFF app.

Running the application

  1. To run this application, host these files on a web server.
  2. Set your LIFF's entryUrl to point to index.html.
  3. Open your LIFF in the LINE app.

Trying it out

To open the LIFF app within the LINE app, follow the steps below.

  1. Tap line://app/{liffId} on the chat screen of the LINE app. {liffId} is the LIFF app ID returned to the API request to add the app to LIFF.

  2. Agree to grant the required permissions to the LIFF app.

  3. When opening the LIFF app, the following four buttons and the content of received information are displayed.

    • Open Window: Opens https://line.me in the in-app browser of the LINE app.
    • Close Window: Closes the LIFF app.
    • Get Access Token: Gets the current user's access token.
    • Get Profile: Gets the current user's profile.
    • Send Messages: Sends a sample message on behalf of the user if the LIFF app is opened in the chat screen.

For API calls associated with the buttons, see Calling the LIFF API. For the received information, see Initializing the LIFF app.

Checking logs

To get more information, you can check the logs of your app using Heroku CLI.

  1. Log in to Heroku from the command line.

    $ heroku login
    
  2. Check the logs.

    $ heroku logs --app {Heroku app name} --tail
    

Downloading and making changes to the starter app

You can download the starter app to your local machine to test and make changes for yourself. You can then deploy the app to a web server of your choice. Here, we'll look at how to make and deploy changes to the Heroku app you created in the previous step.

  1. Make sure you have the following installed

  2. Clone the line-liff-starter GitHub repository.

    git clone https://github.com/line/line-liff-starter.git
    
  3. cd into your Git directory.

  4. Add a remote for Heroku to your local repository.

    $ heroku git:remote -a {Heroku app name}
    
  5. Make edits and commit changes (optional).

    $ git add .
    $ git commit -m "First commit"
    
  6. Push changes to Heroku master.

    $ git push heroku master
    
    
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].