LiNC Developer Meetup Welcome!. Our job is to make your life easier APIs Tools and workflow Documentation Stay in touch: developers.lithium.com Join the.

Slides:



Advertisements
Similar presentations
Using EBSCOs Search Box Builder Tool Tutorial. Would you like to promote your EBSCOhost resources by adding an easy-to-use search box to your website?
Advertisements

LIS650lecture 1 XHTML 1.0 strict Thomas Krichel
Catalog REST for data providers ECHO Technical Interchange 04/30/13 3:15pm EST Doug Newman.
Overview of Twitter API Nathan Liu. Twitter API Essentials Twitter API is a Representational State Transfer(REST) style web services exposed over HTTP(S).
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
UFCE8V-20-3 Information Systems Development 3 (SHAPE HK) Lecture 3 PHP (2) : Functions, User Defined Functions & Environment Variables.
JavaScript and AJAX Jonathan Foss University of Warwick
Using REST and Freemarker to Build Components “let’s make something”
1Proprietary and Confidential AirVantage API – Getting started David SCIAMMA – June 13th 2014.
Extreme User Interfaces for Alfresco Kevin Dorr Sr. Solutions Engineer Americas Channel.
Extending JIRA Rachel Wright July 15, 2014 See slide “Notes” section for commentary and talking points.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
Video, audio, embed, iframe, HTML Form
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
IT 210 The Internet & World Wide Web introduction.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
4.1 JavaScript Introduction
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
JavaScript & jQuery the missing manual Chapter 11
CS378 - Mobile Computing Web - WebView and Web Services.
Server-side Scripting Powering the webs favourite services.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
JavaScript, Fourth Edition
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Embedding CenterView and Hosting External Content.
CSE 190: Internet E-Commerce Lecture 5. Exam Material Lectures 1-4 (Presentation Tier) –3-tier architecture –HTML –Style sheets –Javascript –DOM –HTTP.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Cross Site Integration “mashups” cross site scripting.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Javascript II DOM & JSON. In an effort to create increasingly interactive experiences on the web, programmers wanted access to the functionality of browsers.
XP Tutorial 6 New Perspectives on JavaScript, Comprehensive1 Working with Windows and Frames Enhancing a Web Site with Interactive Windows.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
Things like Textboxes, Lables, ‘n’at. ASPX page is not HTML Controls are rendered into markup that a browser can understand Some controls are rendered.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
Microsoft.com\dynamics\axMicrosoft Dynamics MarketplaceTechNetMSDN Community.dynamics.comCustomerSource*PartnerSource*InformationSource* * Indicates.
OOSSE Week 8 JSP models Format of lecture: Assignment context JSP models JSPs calling other JSPs i.e. breaking up work Parameter passing JSPs with Add.
Introduction into JavaScript Java 1 JavaScript JavaScript programs run from within an HTML document The statements that make up a program in an HTML.
ICM – API Server & Forms Gary Ratcliffe.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
HTML Links HTML uses a hyperlink to another document on the Web.
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Data and tools on the Web have been exposed in a RESTful manner. Taverna provides a custom processor for accessing such services.
Section 10.1 Define scripting
Jim Fawcett CSE686 – Internet Programming Spring 2014
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
Node.js Express Web Applications
Testing Alfresco extensions (no, it’s not about jUnit)
Section 13 - Integrating with Third Party Tools
AJAX and jQuery AJAX AJAX Concepts, XMLHttpRequest, jQuery AJAX: $.ajax(), $.get(), $.post() jQuery AJAX XMLHttpRequest SoftUni Team Technical Trainers.
Data Virtualization Tutorial… CORS and CIS
Lesson 11: Web Services & API's
Getting web pages First we need to get the webpage by issuing a HTTP request. The best option for this is the requests library that comes with Anaconda:
Testing REST IPA using POSTMAN
WEB API.
MIS JavaScript and API Workshop (Part 3)
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Presentation transcript:

LiNC Developer Meetup Welcome!

Our job is to make your life easier APIs Tools and workflow Documentation Stay in touch: developers.lithium.com Join the Developer Track at LiNC May 20-22, San Francisco Lithium Developer Network

Freemarker: Rest and Other Context Object A look at the powerful tools you can access through freemarker Doug Schroeder and Yuri Kapulkin

REST How to make and use REST calls in freemarker components and endpoints

The rest directive can be used to call the Lithium REST API Rest calls return a W3C.Node context object with the response from call If you compare the XML response in a browser to the W3C.Node object, the only difference is it doesnt contain a response wrapper So you dont have to do.response To get an attribute sign To check if an attribute exists use node.attribute[0]?? To get nodes, use. Notation Examples: ${rest(/messages/id/5).message} REST

Imperative Declarative Builtins How to parse the DOM

Querying the Community How to get community data into your components

Use when dealing with pages that represent lower level nodes in the community structure Category page Forum page etc. Note: Most pages in the application are community level Examples : ${coreNode.id} Lithosphere: CoreNode Context ObjectCoreNode Context Object

Use on a page that represents either a message, a user, or a thread If a page represents a user, you can get details about the user My Profile Page User Profile Page If a page represents a message, you can get details about the message Message Page If a page represents a thread, you can get details about the thread Thread Page Examples: Verify the context object exists using if: ${page.context.thread.topicMessage.uniqueId} ${page.context.message.uniqueId} ${page.context.user.id} Lithosphere: Page Context ObjectPage Context Object

When you are on a page with a list of messages (such as the topic page), the env object can help to get the id of each message in the list Forum Message Idea Message Etc. Examples: ${env.context.message.uniqueId} ${env.context.message.parent.u niqueId} Lithosphere: Env Context ObjectEnv Context Object

Used to render localized text strings Examples: ${text.format(general.Kudos)} ${text.format(text.key.with.arguments, arg1,arg2)} Lithosphere: Localizable TextLocalizable Text

Lithium Freemarker Directives A look at special directives that can be used in components and endpoints

directive allows you to insert components into other components You can pass parameters to a component using named parameters Most components dont have any parameters but some do You can add parameters to your custom components Examples: Retrieve parameters in a component using the following: Lithosphere: Passing Parameters to a ComponentPassing Parameters to a

Modal directive is used to render a component inside of a modal window You will need to specify the following parameters: Id: the id of the component you want to render inside the modal Label: The text to display on the link or button used to open the component These are the only two parameters required but there are others you can use to further customize the modal Example: Lithosphere: Creating Modal DialogsCreating Modal

Lets you specify a block of javascript code in a component The javascript will be added to any page containing the component The javascript will be added after all core javascript has run For jQuery, use Lithium.jQuery instead of $ to use Lithiums jQuery You can assign $ to Lithium.jQuery as in the example ;(function($){ /*your code here*/ })(Lithium.jQuery);

Calling External Services How to call external services and use them in freemarker

Http Client allows you to call third party APIs You can configure what domains are allowed via the Lithium Admin You can add headers, fragments, cookies, and parameters to the request Currently HTML is not allowed in the responses and will be rejected! Examples: ${http.client.request( json().get()} $eval{(http.client.request( th).get()} ${http.client.request(https,some.api.url,/some/path ).xml().parameter(paramName,paramValue).post()} Lithosphere: Http ClientHttp Client

You can use response.hasError to check if call was successful response.error.message will contain the error message Response.content will contain the content of the response Examples response-FreeMarker-context-object/ta-p/ response-FreeMarker-context-object/ta-p/80622 Http Client – Parsing the response

Thanks!