All URIs are relative to https://coda.io/apis/v1
| Method | HTTP request | Description |
|---|---|---|
| GetFormula | GET /docs/{docId}/formulas/{formulaIdOrName} | Get a formula |
| ListFormulas | GET /docs/{docId}/formulas | List formulas |
Formula GetFormula (string docId, string formulaIdOrName)
Get a formula
Returns info on a formula.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetFormulaExample
{
public void main()
{
var apiInstance = new FormulasApi();
var docId = docId_example; // string | ID of the doc.
var formulaIdOrName = formulaIdOrName_example; // string | ID or name of the formula. Names are discouraged because they're easily prone to being changed by users. If you're using a name, be sure to URI-encode it.
try
{
// Get a formula
Formula result = apiInstance.GetFormula(docId, formulaIdOrName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FormulasApi.GetFormula: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| docId | string | ID of the doc. | |
| formulaIdOrName | string | ID or name of the formula. Names are discouraged because they're easily prone to being changed by users. If you're using a name, be sure to URI-encode it. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FormulaList ListFormulas (string docId, int? limit = null, string pageToken = null, SortBy sortBy = null)
List formulas
Returns a list of named formulas in a Coda doc.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ListFormulasExample
{
public void main()
{
var apiInstance = new FormulasApi();
var docId = docId_example; // string | ID of the doc.
var limit = 56; // int? | Maximum number of results to return in this query. (optional)
var pageToken = pageToken_example; // string | An opaque token used to fetch the next page of results. (optional)
var sortBy = new SortBy(); // SortBy | Determines how to sort the given objects. (optional)
try
{
// List formulas
FormulaList result = apiInstance.ListFormulas(docId, limit, pageToken, sortBy);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FormulasApi.ListFormulas: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| docId | string | ID of the doc. | |
| limit | int? | Maximum number of results to return in this query. | [optional] |
| pageToken | string | An opaque token used to fetch the next page of results. | [optional] |
| sortBy | SortBy | Determines how to sort the given objects. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]