Don’t you hate it when you need to make an API request but one of the requirements is ObjectId or ObjectGUID? Don’t worry, Igloo has got your back with an alternative way of querying objects!
It can be cumbersome inspecting the DOM to get an object’s ID. Luckily we can use an object’s URL path to query objects for their information. Using the /.api/api.svc/objects/byPath?path=/my/path endpoint you can get object data from Igloo without the need for an object ID.
What do you need?
Getting started is straight forward enough. Find the URL path of the object you want to query and pass it as a query parameter in your GET request. You don't need the entire URL path, only everything after…
Did you know that you can build your widget to display content that’s responsive to a user’s group membership?? By programmatically determining if a user is part of a specific group, we can render content in the widget tailored to that group.
First things first
For us to build a widget that displays group specific content, we must first create or repurpose a group. Remember to add some users to the group!
Let’s start coding
The first thing that we need to do is create an object with the groups you’d like to target content for. In this example we’ll add one property to our groups object - ITGroup. We’ll also populate this property with the group’s ID. While we’re doing this statically in our example, a great improvement would…
Who Are You? – Authenticating To Igloo
Making any API call against IGLOO requires you to authenticate. Authentication creates a session key which holds the context of the user who authenticated. If you create a blog while authenticated as Joe, the creation event will be attributed to Joe.
Authentication requires that you have:
- an appId and an appPassword
- a digital workplace and user credentials
These are provided to you when you register as a developer.
Configuring Your Widget
Dynamically configuring your widget’s parameters at run time
Hard coding configuration parameters is never a good idea, and you don’t have to when you’re building a widget. We are going to build a widget that allows us to:
1) Use the configuration options array
2) Add values through the options tab of your widget
3) Display these fields in your widget
Igloo’s Integration Widget framework allows you to create and pass parameters to the widget when it’s configured on a…
About this channel
- 2,244 views
- 12 articles
- 7 followers
Get the latest developer news from the Developer Relations team.