chartData
Chart Data
This API is used to create a new astrological chart (new horoscope). The API Returns the new chart data, and optionally - aspects listing and the chart image in the png format.
/chart
Usage and SDK Samples
curl -X POST\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://astroapp.com/astro/apis/chart"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChartsAndDetailsApi;
import java.io.File;
import java.util.*;
public class ChartsAndDetailsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ChartsAndDetailsApi apiInstance = new ChartsAndDetailsApi();
ChartDataRequest body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
}; // ChartDataRequest | Chart information to be used to calculate a new horoscope.
String key = key_example; // String | AstroApp API key
try {
ChartDataResponse result = apiInstance.chartData(body, key);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChartsAndDetailsApi#chartData");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChartsAndDetailsApi;
public class ChartsAndDetailsApiExample {
public static void main(String[] args) {
ChartsAndDetailsApi apiInstance = new ChartsAndDetailsApi();
ChartDataRequest body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
}; // ChartDataRequest | Chart information to be used to calculate a new horoscope.
String key = key_example; // String | AstroApp API key
try {
ChartDataResponse result = apiInstance.chartData(body, key);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChartsAndDetailsApi#chartData");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
ChartDataRequest *body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
}; // Chart information to be used to calculate a new horoscope.
String *key = key_example; // AstroApp API key
ChartsAndDetailsApi *apiInstance = [[ChartsAndDetailsApi alloc] init];
// Chart Data
[apiInstance chartDataWith:body
key:key
completionHandler: ^(ChartDataResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AstroAppRestApIs = require('astro_app_rest_ap_is');
var defaultClient = AstroAppRestApIs.ApiClient.instance;
var api = new AstroAppRestApIs.ChartsAndDetailsApi()
var body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
}; // {{ChartDataRequest}} Chart information to be used to calculate a new horoscope.
var key = key_example; // {{String}} AstroApp API key
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chartData(bodykey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chartDataExample
{
public void main()
{
var apiInstance = new ChartsAndDetailsApi();
var body = new ChartDataRequest(); // ChartDataRequest | Chart information to be used to calculate a new horoscope.
var key = key_example; // String | AstroApp API key
try
{
// Chart Data
ChartDataResponse result = apiInstance.chartData(body, key);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChartsAndDetailsApi.chartData: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChartsAndDetailsApi();
$body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
}; // ChartDataRequest | Chart information to be used to calculate a new horoscope.
$key = key_example; // String | AstroApp API key
try {
$result = $api_instance->chartData($body, $key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChartsAndDetailsApi->chartData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChartsAndDetailsApi;
my $api_instance = WWW::SwaggerClient::ChartsAndDetailsApi->new();
my $body = WWW::SwaggerClient::Object::ChartDataRequest->new(); # ChartDataRequest | Chart information to be used to calculate a new horoscope.
my $key = key_example; # String | AstroApp API key
eval {
my $result = $api_instance->chartData(body => $body, key => $key);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChartsAndDetailsApi->chartData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChartsAndDetailsApi()
body = {
"chart" : {
"chartData" : {
"chartName" : "Chart1 REST API",
"chartDate" : { },
"lng" : 15.501,
"lat" : 27.5,
"elev" : 1,
"tz" : "Australia/Brisbane",
"zodiacID" : 100,
"houseSystemID" : 1,
"coordSys" : "G",
"version" : 1
},
"houseCusps" : [ 0, 56.93525558719873, 83.25745421804797, 106.74889194032444, 131.57180262843968, 161.30469178328167, 197.87174209003723, 236.93525558719872, 263.257454218048, 286.7488919403244, 311.5718026284397, 341.30469178328167, 17.87174209003722, 56.93525558719873 ],
"objects" : [ {
"id" : 0,
"lat" : -2.4185262607601368E-5,
"lng" : 132.5530611764038,
"speed" : 0.9580980697973276
}, {
"id" : 1,
"lat" : 0.18472555283975323,
"lng" : 93.53453038354613,
"speed" : 14.674778238770797
}, {
"id" : 2,
"lat" : -1.3928250243447262,
"lng" : 159.86355817522923,
"speed" : 0.9883563240819169
}, {
"id" : 3,
"lat" : -4.753016683251441,
"lng" : 89.71936319181324,
"speed" : 0.6783372162947274
}, {
"id" : 4,
"lat" : 0.42855807310554445,
"lng" : 93.47211211448054,
"speed" : 0.6659960311692098
}, {
"id" : 5,
"lat" : -1.0888236556291035,
"lng" : 53.51205084806141,
"speed" : 0.12180744117520598
}, {
"id" : 6,
"lat" : -1.6848965120363257,
"lng" : 333.1183499288868,
"speed" : -0.06802003882006169
}, {
"id" : 7,
"lat" : 0.7344924887884263,
"lng" : 158.67161566181642,
"speed" : 0.05794192721152667
}, {
"id" : 8,
"lat" : 1.7684753833886018,
"lng" : 225.08081533606764,
"speed" : 0.004713567796983999
}, {
"id" : 9,
"lat" : 13.651622194093484,
"lng" : 162.87797198775937,
"speed" : 0.031318995996427394
}, {
"id" : 11,
"lat" : 0,
"lng" : 91.49616109076942,
"speed" : -0.0033910007050202036
}, {
"id" : 15,
"lat" : 4.955307900081983,
"lng" : 347.9524244980293,
"speed" : -0.035600876658640764
} ]
},
"calcRequestProps" : {
"needImage" : "Y",
"needAspects" : "Y"
},
"params" : {
"objects" : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15 ],
"aspects" : [ {
"angle" : 0,
"orb" : 9
}, {
"angle" : 30,
"orb" : 1
}, {
"angle" : 45,
"orb" : 1
}, {
"angle" : 60,
"orb" : 7
}, {
"angle" : 90,
"orb" : 8
}, {
"angle" : 120,
"orb" : 9
}, {
"angle" : 135,
"orb" : 2
}, {
"angle" : 150,
"orb" : 4
}, {
"angle" : 180,
"orb" : 10
} ]
}
} # ChartDataRequest | Chart information to be used to calculate a new horoscope.
key = key_example # String | AstroApp API key
try:
# Chart Data
api_response = api_instance.chart_data(body, key)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChartsAndDetailsApi->chartData: %s\n" % e)
Parameters
Name | Description |
---|---|
key* |
String
AstroApp API key
Required
|
Name | Description |
---|---|
body * |