({{, (RefLink[DatabinAdd, paclet:ref/DatabinAdd])[bin,data]
adds the specified data to a databin.}})

OpenersNotesSection(Spacer1)Details

In (RefLink[DatabinAdd, paclet:ref/DatabinAdd])[bin,…], bin can be a (RefLink[Databin, paclet:ref/Databin]) object or databin ID.

The data will typically be an association of the form <|"(Subscript[param, 1])"->(Subscript[val, 1]),…|>, but can be any expression.

A "Timestamp" element in the association can be used to specify the time stamp for a databin entry.

For databins with private write permissions, (RefLink[DatabinAdd, paclet:ref/DatabinAdd]) requires authentication in the Wolfram Cloud.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create a new databin:

bin=CreateDatabin[]

Add a value to the databin:

DatabinAdd[bin,1234]

Add another value:

DatabinAdd[bin,5678]

Retrieve the values from the databin:

Values[bin]

Create a databin with an interpretation:

bin=CreateDatabin["Interpretation"->{"city"->"City","temp"->Restricted["StructuredQuantity","DegreesCelsius"]}]

Add to the databin:

DatabinAdd[bin,<|"city"->"nyc","temp"->20.4|>]

DatabinAdd[bin,<|"city"->"LA","temp"->26.2|>]

Retrieve values from the databin:

Values[bin]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CreateDatabin, paclet:ref/CreateDatabin])  ▪  (RefLink[DatabinUpload, paclet:ref/DatabinUpload])  ▪  (RefLink[Databin, paclet:ref/Databin])  ▪  (RefLink[Get, paclet:ref/Get])  ▪  (RefLink[CloudConnect, paclet:ref/CloudConnect])  ▪  (RefLink[CloudPut, paclet:ref/CloudPut])  ▪  (RefLink[EventSeries, paclet:ref/EventSeries])  ▪  (RefLink[TimeSeries, paclet:ref/TimeSeries])  ▪  (RefLink[TimeSeriesInsert, paclet:ref/TimeSeriesInsert])  ▪  (RefLink[DatabinRemove, paclet:ref/DatabinRemove])  ▪  (RefLink[BlockchainPut, paclet:ref/BlockchainPut])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Using the Wolfram Data Drop, paclet:guide/UsingTheWolframDataDrop])}, {▪(RefLinkPlain[Using Connected Devices, paclet:guide/UsingConnectedDevices])}, {▪(RefLinkPlain[Accessing External Services & APIs, paclet:guide/AccessingExternalServicesAndAPIs])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(Spacer1)▪(WebLink[(Spacer1)Wolfram Data Drop: Quick Reference, http://www.wolfram.com/datadrop/quick-reference/])}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/43-storing-things.html])(WebLink[: Storing Things, https://www.wolfram.com/language/elementary-introduction/43-storing-things.html])}})}})