# FinobotBackend.DefaultApi

All URIs are relative to *http://localhost:10010/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getFbUser**](DefaultApi.md#getFbUser) | **GET** /user/fb/{fbid} | 
[**getTest**](DefaultApi.md#getTest) | **GET** /test/{userId} | 
[**getUser**](DefaultApi.md#getUser) | **GET** /user/{userId} | 
[**hello**](DefaultApi.md#hello) | **GET** /hello | 
[**postFbPageUser**](DefaultApi.md#postFbPageUser) | **POST** /user/fb/page | 
[**postFbUser**](DefaultApi.md#postFbUser) | **POST** /user/fb | 


<a name="getFbUser"></a>
# **getFbUser**
> User getFbUser(fbid)



geting a user by fbid

### Example
```javascript
var FinobotBackend = require('finobot_backend');
var defaultClient = FinobotBackend.ApiClient.default;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new FinobotBackend.DefaultApi();

var fbid = "fbid_example"; // String | facebook id

apiInstance.getFbUser(fbid).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fbid** | **String**| facebook id | 

### Return type

[**User**](User.md)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getTest"></a>
# **getTest**
> HelloWorldResponse getTest(userId)



### Example
```javascript
var FinobotBackend = require('finobot_backend');
var defaultClient = FinobotBackend.ApiClient.default;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new FinobotBackend.DefaultApi();

var userId = "userId_example"; // String | data base user ID

apiInstance.getTest(userId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userId** | **String**| data base user ID | 

### Return type

[**HelloWorldResponse**](HelloWorldResponse.md)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getUser"></a>
# **getUser**
> User getUser(userId)



get user by his Id

### Example
```javascript
var FinobotBackend = require('finobot_backend');

var apiInstance = new FinobotBackend.DefaultApi();

var userId = "userId_example"; // String | data base user ID

apiInstance.getUser(userId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userId** | **String**| data base user ID | 

### Return type

[**User**](User.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="hello"></a>
# **hello**
> HelloWorldResponse hello(opts)



Returns &#39;Hello&#39; to the caller

### Example
```javascript
var FinobotBackend = require('finobot_backend');

var apiInstance = new FinobotBackend.DefaultApi();

var opts = { 
  'name': "name_example" // String | The name of the person to whom to say hello
};
apiInstance.hello(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **name** | **String**| The name of the person to whom to say hello | [optional] 

### Return type

[**HelloWorldResponse**](HelloWorldResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="postFbPageUser"></a>
# **postFbPageUser**
> User postFbPageUser(fbid)



posting a new facebook user

### Example
```javascript
var FinobotBackend = require('finobot_backend');
var defaultClient = FinobotBackend.ApiClient.default;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new FinobotBackend.DefaultApi();

var fbid = "fbid_example"; // String | 

apiInstance.postFbPageUser(fbid).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fbid** | **String**|  | 

### Return type

[**User**](User.md)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="postFbUser"></a>
# **postFbUser**
> User postFbUser(fbid)



posting a new facebook user

### Example
```javascript
var FinobotBackend = require('finobot_backend');
var defaultClient = FinobotBackend.ApiClient.default;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new FinobotBackend.DefaultApi();

var fbid = "fbid_example"; // String | 

apiInstance.postFbUser(fbid).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fbid** | **String**|  | 

### Return type

[**User**](User.md)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

