Desire2Learn course info in SOAP and Valence APIs - desire2learn

In Desire2Learn, does the ID and name/description for a given course have the same values in both the SOAP and the Valence APIs? Also, is there a Valence API call for retrieving the list of courses available to the user?

In terms of the suggested calls part of your question: You can get a list of enrollments (both courses and departments and any other structures your school has) using the myenrollments call
To filter by org unit type you can first retrieve the types

Related

Adwords MCC ID Java App

I am new to Adwords api so excuse my lack of knowledge.
Just wanted to check if there is any way to programmatically pull the MCC client ID without physically adding it in the session builder code?
Thanks,
Sid
I think you are looking for CustomerService
CustomerService provides information about your accounts. It has a
getCustomers() method that takes no arguments and returns a list of
Customer objects containing fields such as customerId, currencyCode,
and dateTimeZone. CustomerService also has a mutate() method that can
be used to update various attributes of a customer, including the
autoTaggingEnabled and conversionTrackingSetting fields.
Reference: Managing Accounts
Read carefully the annotations for your Adwords API version.

I am creating shopify app,and i need to filter the customers from particular customergroup

I am using the following API to get Customer group. ShopifyAPI::CustomerGroup. I got customer group names and id but i am not able to retrive the customers for particular customer group.Kindly suggest some ideas.
You can't. Customer groups is not a valid Shopify API resource or an endpoint. Instead, try to get the customers based on field values listed here - Customer API.
It'd help much if your grouping is based on certain conditions that are easy to extract from API endpoints.

Linking grades to a quiz or dropbox in desire2learn

I need to retrieve a unit's assessment items (with deep link, achievable score, and due date) via Valence API in desire2learn.
I am able to retrieve grades, calendars and dropboxes via the following API calls:
/d2l/api/le/1.2/{orgUnit}/grades/
/d2l/api/le/1.2/{orgUnit}/dropbox/folders/
/d2l/api/le/1.2/{orgUnit}/calendar/events/user/
I can see that the grades retrieved correspond to either a dropbox or a quiz (#grades = #quizzes + #dropboxes), and I can link a calendar item to a dropbox via 'associated entity id'.
I have also found that a calendar entry can be associated with an id of type 'D2L.LE.Quizzing.Quiz' but I don't know what to do with that ID.
It seems to me that I need to start with calendar entries which have an associated entity, then lookup either a dropbox or a quiz based on the association, and then match the dropbox or quiz to a grade.
Although the API allows you to retrieve calendar events that associate to quiz entities, D2L does not yet have any APIs around the quiz entities themselves. You can retrieve the grade values/objects associated with a quiz, if the back-end service has associated grade items with the quiz; similarly, you can retrieve the calendar events associated with a quiz, as you have discovered. However, D2L doesn't yet provide a way to get at the quiz entity itself. This is an often-requested enhancement to the platform, and as a result, it does already exist on the product roadmap for future Learning Environment development; however, D2L does not yet have a committed release date for platform functionality around quiz entities.

How do I use the Desire2learn Valence API to enroll a student in a course?

In trying to automate a workflow, how do I use the D2L REST API to enroll a student in a course?
D2L works on enrollments that are a tuple of the user, the role and the course or org structure (orgunitid represents course or a structural element like a department or faculty). The call to create these enrollments allows you to specify all these values, and other calls allow retreival of the ids for users or courses.
Most often developers need to search by course code, but that is not possible directly on version 9.4.1 or version 10.0 so you will want to locate the d2lid from the course code in the calling code (this course code search is covered in other questions as well).

what is the standard for creating a web REST API for adding new items

i have a order catalogue web site and i want to create a REST API so people can create their own apps and Add an Order or Update an existing order:
Lets say an order has:
OrderId
Product
Quantity
ShippingType
So i need some API to allow someone to send in a new order (orderid would be blank as that would be in the response).
How do you deal with passing in items like Product or Shipping type. These are tables in my db and are keyed off their own specific primary key id. Should the NewOrder API ask for a string name for these fields, should it ask for the id. If it asked for the ID, that would assume they would have to call the GiveMeProductList() method upfront (which gives you the name and id of all product as a dataset).
What is the standard for dealing with this?
Martin Fowler has a good post about the steps toward the glory of REST that you might find useful to come up with REST API.
The media type that I use for sending this information to the server can handle both scenarios, Id and Code/Name. If the user enters the product code manually then I send up the code, if the user asks to pick from a list then I provide the list and send back the Id.

Resources