Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended files #70

Open
2 of 3 tasks
tobiasKaminsky opened this issue Dec 6, 2024 · 7 comments
Open
2 of 3 tasks

Recommended files #70

tobiasKaminsky opened this issue Dec 6, 2024 · 7 comments
Labels
enhancement New feature or request 🍀 2025-Spring

Comments

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Dec 6, 2024

@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 🤖 🍏 Clients team Dec 6, 2024
@tobiasKaminsky tobiasKaminsky moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (max 2 entries / member) in 🤖 🍏 Clients team Dec 6, 2024
@tobiasKaminsky
Copy link
Member Author

TOS server can be used.

Endpoint:
/ocs/v2.php/apps/recommendations/api/v1/recommendations

Returns:

<?xml version="1.0"?>
<ocs>
	<meta>
		<status>ok</status>
		<statuscode>200</statuscode>
		<message>OK</message>
	</meta>
	<data>
		<enabled>1</enabled>
		<recommendations>
			<element>
				<id>289223</id>
				<timestamp>1727274983546</timestamp>
				<name>IMG_20220623_122953.jpg</name>
				<directory>/offline</directory>
				<extension>jpg</extension>
				<mimeType>image/jpeg</mimeType>
				<hasPreview>1</hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>289222</id>
				<timestamp>1727274983458</timestamp>
				<name>IMG_20240118_094742.jpg</name>
				<directory>/offline</directory>
				<extension>jpg</extension>
				<mimeType>image/jpeg</mimeType>
				<hasPreview>1</hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>289221</id>
				<timestamp>1727274983375</timestamp>
				<name>IMG_20220623_123006.jpg</name>
				<directory>/offline</directory>
				<extension>jpg</extension>
				<mimeType>image/jpeg</mimeType>
				<hasPreview>1</hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>289220</id>
				<timestamp>1727274983264</timestamp>
				<name>IMG_20221125_094439.jpg</name>
				<directory>/offline</directory>
				<extension>jpg</extension>
				<mimeType>image/jpeg</mimeType>
				<hasPreview>1</hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>290541</id>
				<timestamp>1733832263</timestamp>
				<name>Notes2</name>
				<directory>/</directory>
				<extension></extension>
				<mimeType>httpd/unix-directory</mimeType>
				<hasPreview></hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>290502</id>
				<timestamp>1733487170</timestamp>
				<name>color</name>
				<directory>/</directory>
				<extension></extension>
				<mimeType>httpd/unix-directory</mimeType>
				<hasPreview></hasPreview>
				<reason>Recently edited</reason>
			</element>
			<element>
				<id>290504</id>
				<timestamp>1733487170</timestamp>
				<name>2.md</name>
				<directory>/color</directory>
				<extension>md</extension>
				<mimeType>text/markdown</mimeType>
				<hasPreview></hasPreview>
				<reason>Recently edited</reason>
			</element>
		</recommendations>
	</data>
</ocs>

@tobiasKaminsky
Copy link
Member Author

Capability added:

	"recommendations": {
					"enabled": true
				},

As the app can be disabled for groups, please check for enabled true/false.

@tobiasKaminsky tobiasKaminsky moved this from 📄 To do (max 2 entries / member) to 🏗️ In progress in 🤖 🍏 Clients team Jan 7, 2025
@marinofaggiana
Copy link
Member

Image

@tobiasKaminsky
Copy link
Member Author

Aspect ratio of preview seems to be a bit wrong, else ✔

@marinofaggiana
Copy link
Member

Yes, the GUI in not yet completed

@marinofaggiana
Copy link
Member

Image

@marinofaggiana
Copy link
Member

@tobiasKaminsky The endpoint include the (like server) 2 files for the LivePhoto (image + video) so is not compliant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🍀 2025-Spring
Projects
Status: 🏗️ In progress
Development

No branches or pull requests

3 participants