> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tangerine365.com/llms.txt.
> For full documentation content, see https://docs.tangerine365.com/llms-full.txt.

# PlayLo

GET https://localhost:8090//appLms/index.php
Content-Type: application/x-www-form-urlencoded

This API endpoint is a GET request that is used to play a learning object.

### Request

- Method: GET
    
- Base URL: {{baseUrl}}
    
- Path: /appLms/index.php?modname=&op=&id_item=&auth={{token}}
    
- Headers:
    
    - Content-Type: application/x-www-form-urlencoded
        

### Request Params

- `modname` (string): Module name
    
- `op` (string): Action to perform
    
- `id_item` (string): Learning object ID
    
- `token` (string): Authentication token

Reference: https://docs.tangerine365.com/tangerine-365-enterprise/play-lo

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Tangerine365 Enterprise
  version: 1.0.0
paths:
  //appLms/index.php:
    get:
      operationId: play-lo
      summary: PlayLo
      description: >-
        This API endpoint is a GET request that is used to play a learning
        object.


        ### Request


        - Method: GET
            
        - Base URL: {{baseUrl}}
            
        - Path: /appLms/index.php?modname=&op=&id_item=&auth={{token}}
            
        - Headers:
            
            - Content-Type: application/x-www-form-urlencoded
                

        ### Request Params


        - `modname` (string): Module name
            
        - `op` (string): Action to perform
            
        - `id_item` (string): Learning object ID
            
        - `token` (string): Authentication token
      tags:
        - ''
      parameters:
        - name: modname
          in: query
          required: false
          schema:
            type: string
        - name: op
          in: query
          required: false
          schema:
            type: string
        - name: course_id
          in: query
          required: false
          schema:
            type: integer
        - name: id_item
          in: query
          required: false
          schema:
            type: integer
        - name: auth
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties: {}
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
servers:
  - url: https://localhost:8090

```

## SDK Code Examples

```python PlayLo_example
import requests

url = "https://localhost:8090//appLms/index.php"

querystring = {"modname":"organization","op":"custom_playitem","course_id":"48","id_item":"5172","auth":"{{token}}"}

payload = ""
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.get(url, data=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript PlayLo_example
const url = 'https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D';
const options = {
  method: 'GET',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams('')
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go PlayLo_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby PlayLo_example
require 'uri'
require 'net/http'

url = URI("https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'

response = http.request(request)
puts response.read_body
```

```java PlayLo_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D")
  .header("Content-Type", "application/x-www-form-urlencoded")
  .asString();
```

```php PlayLo_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D', [
  'form_params' => null,
  'headers' => [
    'Content-Type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();
```

```csharp PlayLo_example
using RestSharp;

var client = new RestClient("https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
IRestResponse response = client.Execute(request);
```

```swift PlayLo_example
import Foundation

let headers = ["Content-Type": "application/x-www-form-urlencoded"]

let request = NSMutableURLRequest(url: NSURL(string: "https://localhost:8090//appLms/index.php?modname=organization&op=custom_playitem&course_id=48&id_item=5172&auth=%7B%7Btoken%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```