For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://api-doc-new.gideononline.com/gideon-api-1-0/drugs/llms.txt. For full documentation content, see https://api-doc-new.gideononline.com/gideon-api-1-0/drugs/llms-full.txt.

# /drugs/{drug_code}/mechanism-of-action

GET https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action

Returns information on mechanism of action of a drug. Mechanism of action (MOA) refers to the specific biochemical interaction through which a drug produces its pharmacological effect. 

Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/drugs/drugs-drug-code-mechanism-of-action

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /drugs/%7Bdrug_code%7D/mechanism-of-action:
    get:
      operationId: drugs-drug-code-mechanism-of-action
      summary: /drugs/{drug_code}/mechanism-of-action
      description: >-
        Returns information on mechanism of action of a drug. Mechanism of
        action (MOA) refers to the specific biochemical interaction through
        which a drug produces its pharmacological effect. 
      tags:
        - subpackage_drugs
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Drugs_/drugs/{drug_code}/mechanism-of-action_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    Drugs7BdrugCode7DMechanismOfActionGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        drug:
          type: string
        drug_code:
          type: integer
        mechanism_of_action:
          type: string
      required:
        - drug
        - drug_code
        - mechanism_of_action
      title: >-
        Drugs7BdrugCode7DMechanismOfActionGetResponsesContentApplicationJsonSchemaData
    Drugs_/drugs/{drug_code}/mechanism-of-action_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/Drugs7BdrugCode7DMechanismOfActionGetResponsesContentApplicationJsonSchemaData
      required:
        - data
      title: Drugs_/drugs/{drug_code}/mechanism-of-action_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Drugs_/drugs/{drug_code}/mechanism-of-action_example
import requests

url = "https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action"

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Drugs_/drugs/{drug_code}/mechanism-of-action_example
const url = 'https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

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

```go Drugs_/drugs/{drug_code}/mechanism-of-action_example
package main

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

func main() {

	url := "https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action"

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

	req.Header.Add("Authorization", "<apiKey>")

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

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

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

}
```

```ruby Drugs_/drugs/{drug_code}/mechanism-of-action_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

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

```java Drugs_/drugs/{drug_code}/mechanism-of-action_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Drugs_/drugs/{drug_code}/mechanism-of-action_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Drugs_/drugs/{drug_code}/mechanism-of-action_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Drugs_/drugs/{drug_code}/mechanism-of-action_example
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/drugs/%7Bdrug_code%7D/mechanism-of-action")! 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()
```