Skip to content

benjaminsaljooghi/upsights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Extract insights from your Up account.

Features

  • Import Up spending transactions into a Notion database.

Running

  • Configure Config.toml.
    • Configure your Up secret.
    • Configure your Notion secret.
    • Create a database in Notion and copy its id from the URL.
  • Follow the Up API section.
  • Open in RustRover and execute.

Up API

brew install openapi-generator
openapi-generator generate -i up.json -g rust -o ./upapi

Notion API

Notion does not publish an OpenAPI spec, but they do publish a postman collection. The Notion OpenAPI spec in this repo is generated from the postman collection. However, when generating the client, there are some issues. Therefore, I have committed the generated code with fixes:

  • The generated code does not have any models. I have started creating some in notionapi/src/models/mod.rs.
  • The reqwest .json function does not build a request body if the input is a string, which it is in the generated code. I have started fixing this by updating the client to serialise my own models.

About

Extract insights from your Up account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published